Use the Secure Shell protocol to execute commands on a remote server using a private key
Emit new event each time a Telegram Bot command is received.
Emit new event each time a channel post is created or updated.
Emit new event each time a Telegram message is created or updated.
Executes a command on a remote device. See SSH lib docs here
Create an additional invite link for a chat, See the docs for more information
Edits photo or video messages. See the docs for more information
Edits text or game messages. See the docs for more information
The Secure Shell (SSH) API is an powerful tool for securely connecting to
remote systems over a network, allowing users to easily and securely access
their systems or services. This API is useful for a variety of tasks including
data transfer and remote system management.
Key-based authentication is a way of validating the identity of the client to
the server. It works by generating and exchanging a digital key that must match
in order for the user to access the server. This provides an extra layer of
security, as it is much harder to guess a digital key than a user password.
With the SSH (key-based auth) API, you can use key-based authentication to
create an encrypted, authenticated channel between two computers. This can be
used for securely accessing services, such as:
module.exports = defineComponent({
props: {
ssh: {
type: "app",
app: "ssh",
}
},
async run({steps, $}) {
const SSH2Promise = require('ssh2-promise')
const {
host,
port,
username,
privateKey,
} = this.ssh.$auth
const ssh = new SSH2Promise({
host,
port,
username,
privateKey,
})
await ssh.connect()
console.log("Connection established")
// Replace this with the command you'd like to run
const resp = await ssh.exec("whoami")
console.log(resp)
await ssh.close()
},
})
With the Telegram Bot API, you can build bots that perform a variety of tasks,
including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
telegram_bot_api: {
type: "app",
app: "telegram_bot_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.telegram.org/bot${this.telegram_bot_api.$auth.token}/getMe`,
})
},
})