Use Telegram's Bot API to send messages, photos, videos, audio, animations, documents, locations, contacts, or polls. Message actions also edit, forward, copy, pin, delete, and react; chat actions retrieve chat or member details and show status indicators.
Start workflows from Telegram messages
- Send
/newbotto BotFather in Telegram and copy the bot token. - Add a Telegram trigger to your workflow and enter Bot Token.
- Deploy the workflow. Sim registers the generated webhook URL with Telegram.
- Send a message to the bot and inspect the workflow run. The trigger returns message and sender data, including the source chat ID.
Telegram registers one webhook per bot. Registering it elsewhere redirects delivery, so use a separate bot when workflows need independent webhook destinations. See the Telegram bot tutorial.
The webhook setup video also demonstrates starting a run from an incoming message.
Send messages to a Telegram group
- Add the bot to the group and grant the permissions needed by the action.
- Obtain the group's numeric chat ID from a bot message update, such as the trigger's
message.raw.chat.id. Group IDs can be negative. - Add a Telegram action block, select Send Message, and set Bot Token, Chat ID, and Message.
- Run the workflow and verify the message in the group.
The group messaging video demonstrates the block configuration. Bot privacy settings affect which group messages Telegram delivers; receiving a command addressed to the bot can help verify the trigger before changing those settings.
Use the block
Send, edit, forward, copy, pin, or delete messages; send media, locations, contacts, and polls; set reactions and chat actions; and inspect chats and members. Bot messages and events can start workflows.
Actions
Telegram Send Message
Send a text message through the Telegram Bot API. Markdown is converted to Telegram HTML before sending; the response includes the sent message and recipient chat.
Telegram Delete Message
Delete messages in Telegram channels or chats through the Telegram Bot API. Requires the message ID of the message to delete.
Telegram Send Photo
Send photos to Telegram channels or users through the Telegram Bot API.
Telegram Send Video
Send videos to Telegram channels or users through the Telegram Bot API.
Telegram Send Audio
Send audio files to Telegram channels or users through the Telegram Bot API.
Telegram Send Animation
Send animations (GIFs) to Telegram channels or users through the Telegram Bot API.
Telegram Send Document
Send documents (PDF, ZIP, DOC, etc.) to Telegram channels or users through the Telegram Bot API.
Telegram Edit Message Text
Edit the text of an existing message in a Telegram chat or channel through the Telegram Bot API.
Telegram Forward Message
Forward a message from one Telegram chat to another through the Telegram Bot API.
Telegram Copy Message
Copy a message to another Telegram chat without a forward header through the Telegram Bot API.
Telegram Send Location
Send a point on the map to a Telegram chat through the Telegram Bot API.
Telegram Send Contact
Send a phone contact to a Telegram chat through the Telegram Bot API.
Telegram Send Poll
Send a native poll to a Telegram chat through the Telegram Bot API.
Telegram Pin Message
Pin a message in a Telegram chat through the Telegram Bot API.
Telegram Unpin Message
Unpin a pinned message in a Telegram chat through the Telegram Bot API. Unpins the most recent pinned message when no message ID is given.
Telegram Set Message Reaction
Set or remove an emoji reaction on a message in a Telegram chat through the Telegram Bot API.
Telegram Send Chat Action
Show a status action such as a typing indicator in a Telegram chat through the Telegram Bot API.
Telegram Get Chat
Get up-to-date information about a Telegram chat through the Telegram Bot API.
Telegram Get Chat Member
Get information about a member of a Telegram chat through the Telegram Bot API.
Triggers
A trigger starts a workflow when a supported event occurs in this service.
Telegram Webhook
Trigger workflow from Telegram bot messages and events