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.
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 is a cloud-based messaging app with a focus on security and speed. Build bots to send messages, manage chats, and interact with users.
Through its API, with the provider’s credentials and permissions.
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 serverTelegram 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.
Starter briefs to set up with your accounts, not finished workflows.
Adapted from the sheet-driven channel post template, with the bot added as a channel administrator.
Based on the agenda-and-inbox chatbot template; only your own chat id gets answers.
A from-scratch outbound alert; the bot must already be a member of the group.
Real briefs for this app. Pick one; Whenever writes it for your accounts.
Delivers a formatted Telegram message with the submitted details every time your form is filled in.
Replies to /today with your calendar and tasks and to /inbox with an email summary. Requires Telegram webhook registration with a secret token; one bot serves one workflow.
Publishes due rows from your posting sheet to Telegram on the cadence you choose, then marks each row Posted.
Checks your tickers every hour and messages you on Telegram when one moves more than your threshold within that hour.
Collects lead details in a sheet and adds completed leads to HubSpot. Requires Telegram webhook registration with a secret token; one bot serves one workflow.
Delivers one Telegram message each morning with your unread email, today's meetings and the tasks due.
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.
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.
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.
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.
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.
One workflow free. No card. Weekly AI-building limits.