Respond to Telegram Bot message
@dylburger
code:
data:privatelast updated:9 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 200,000+ developers using the Pipedream platform
steps.
trigger
Message Updates (Instant)
last updated:15 days 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

Unique identifier for the target chat or username of the target channel (in the format @channelusername). Integer or String accepted.

{{steps.trigger.event.message.chat.id}}
integer ·params.chat_id
Message text

Text of the message to be sent, 1-4096 characters after entities parsing

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,
  }
})