Respond to Telegram Bot message
@dylburger
code:
data:privatelast updated:6 months ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 100,000+ developers using the Pipedream platform
steps.
trigger
Message Updates (Instant)
last updated:8 months ago
steps.
send_telegram_message
Sends a message using the sendMessage API method: https://core.telegram.org/bots/api#sendmessage
auth
(auths.telegram_bot_api)
params
Chat ID
1
{{steps.trigger.event.message.chat.id}}
integer ·params.chat_id
Message text
1
Hello!
string ·params.text
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
}
13
// https://core.telegram.org/bots/api#sendmessage
const { chat_id, text } = params

return await require("@pipedreamhq/platform").axios(this, {
  method: "POST",
  url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/sendMessage`,
  params: {
    chat_id,
    text,
  }
})