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`,
})
},
})
Telegram Bot uses API keys for authentication. When you connect your Telegram Bot account, Pipedream securely stores the keys so you can easily authenticate to Telegram Bot APIs in both code and no-code steps.
To use the Telegram Bot API, you must first create a new bot by chatting with the BotFather.
After you create your bot, copy the bot token and add it below.