Skip to content
Integration

Telegram integrations and automation

Say what should happen in Telegram, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

Telegram on Whenever

About Telegram

Telegram is a cloud-based messaging app with a focus on security and speed. Build bots to send messages, manage chats, and interact with users.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the Telegram workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your Telegram workflow

Telegram automation runs through a bot, not through your personal account. You create the bot with @BotFather, receive a token, and every call goes to the Bot API with that token. The first surprise for most people is that a bot cannot start a conversation: a person has to open the bot and press Start, or add it to a group, before the bot may message them. That is why the templates ask for a chat id during setup instead of a username. For channels, the bot must be an administrator with permission to post.

The Bot API offers two ways to receive incoming messages, and they exclude each other. getUpdates is long polling; setWebhook asks Telegram to push each update to an address you register, optionally with a secret token that Telegram repeats in a request header so the receiver can reject forged calls. A conversational bot built in Whenever uses the webhook route, so a reply starts when the message arrives rather than on the next scheduled check. While a webhook is set, getUpdates stops returning updates, so a leftover polling script on another machine will silently stop working.

The catalogue has more Telegram templates than most apps. Outbound ones send a Typeform response, a morning digest of Gmail, Google Calendar and Google Tasks, Twelve Data price moves of more than a set percentage, or scheduled channel posts from a Google Sheets tab whose Status column prevents reposting. Conversational ones answer /today and /inbox commands, collect a lead field by field before creating a HubSpot contact, run a coaching chat that keeps history in a sheet, and draft support replies with a GroqCloud model before logging them. An Airtable document chaser reports stubborn clients to Telegram.

Formatting and volume need a little care. Messages accept HTML or MarkdownV2 formatting, and MarkdownV2 requires escaping characters such as dots and dashes, so unescaped prices or dates make the send fail. A single message is limited to 4096 characters, which matters for long digests. Telegram’s bot FAQ asks bots to stay around one message per second in a single chat and to spread broadcasts out, so a large list of recipients should be sent in paced batches rather than all at once.

Telegram workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Post scheduled announcements to a channel

Adapted from the sheet-driven channel post template, with the bot added as a channel administrator.

Build this workflow

Answer agenda commands from a private bot

Based on the agenda-and-inbox chatbot template; only your own chat id gets answers.

Build this workflow

Alert a group when a GitHub release is published

A from-scratch outbound alert; the bot must already be a member of the group.

Build this workflow

Telegram workflows to start from

Real briefs for this app. Pick one; Whenever writes it for your accounts.

Related apps for your workflows

All integrations

Telegram FAQs

Why does my Telegram bot fail to message a new user?

Bots can only write to people who have started a chat with them, or to groups and channels they belong to. Ask the person to open the bot and press Start, then use the chat id from that first update.

Webhook or getUpdates for a Telegram bot?

Use one or the other; Telegram does not deliver updates through getUpdates while a webhook is set. A webhook lets each message start a run immediately, and the secret token header lets the receiver verify the request came from Telegram.

How fast can a bot send Telegram messages?

Telegram’s bot FAQ suggests roughly one message per second per chat, a lower rate in groups, and about 30 messages per second overall for broadcasts. Exceeding it returns a 429 error with a retry-after value.

How do I find the chat id of a channel or group?

Add the bot, send a message there, and read the chat object from the update the bot receives. Public channels can also be addressed as @channelusername; group and supergroup ids are negative numbers.

Why does sending with MarkdownV2 return a parse error?

MarkdownV2 reserves characters like . - ( ) ! and requires them to be escaped with a backslash outside formatting. HTML mode needs only <, > and & escaped, which is often easier for generated text.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.