Send updates to a Telegram group from Claude
You can ask Claude, ChatGPT or Cursor to post a message from your Telegram bot to a group, a channel or a private chat. The AI finds the chat, sends the text, and can edit or delete the message later. The server acts as your bot, not as your personal Telegram account. Add https://telegram.usefulapi.io/mcp as an MCP server, then ask in plain words.
Which prompt do I start with?
Post "Deploy finished, the new version is live" to my Telegram team group. Show me the text first and wait for my OK.
Give the group's @username or its chat id if you know it. You can also ask to send the message without sound, to reply to an earlier message, or to post in a forum topic.
What does the AI do, step by step?
- It checks the bot with
telegram_get_me: its name and username. - It finds the chat. A public group or channel can be named by its @username. For other chats it needs the chat id, which is a negative number for groups. If you do not know the id, send a command to the bot in the group, for example /start@yourbot, and ask the AI to read the waiting updates with
telegram_get_updateswithout an offset. If your command is in the reply, it shows the chat id of the group. One read returns at most 100 updates. Telegram keeps updates for at most 24 hours, and this tool fails if the bot uses a webhook. If the AI still cannot find the group, it asks you for the chat id. - It can confirm the chat with
telegram_get_chat: the type, and the title and description when the chat has them. - It shows you the text and, after your approval, sends it with
telegram_send_message. The text can have up to 4,096 characters, in plain text or with Telegram formatting. Formatting marks count toward this limit. The AI can also send it without sound, as a reply to a message id from the same chat, or in a forum topic by its topic id. - The reply gives the id of the new message. Keep the chat and the message id: with them the AI can replace the text with
telegram_edit_message_textor remove the message withtelegram_delete_message, if Telegram allows it. Telegram lets a bot delete its own message only while it is less than 48 hours old.
The bot must be a member of the chat. To post in a channel, the bot must be an administrator of the channel with the right to post. A bot can send a private message only to a person who started a chat with it.
UsefulAPI counts the Telegram tool calls toward your monthly plan. If a counted call fails, UsefulAPI tries to give that call back to your plan.
Can the AI post without asking me?
People can see a message as soon as the bot sends it. A later delete removes it from the chat, but people can already have read or copied it. The send tool has no separate confirmation step, so tell the AI to show you the text first and to wait for your approval. Your AI client can also ask you to approve each tool call; this depends on the client and its settings.
Be careful with telegram_get_updates. Without an offset, it only reads the waiting updates. With a positive offset, Telegram deletes the updates below that number; with a negative offset, it deletes the older updates in the queue. This cannot be undone, and another program that reads the same bot then does not get them. A list of update types also changes the bot's saved filter, so leave it out for a simple lookup.
When you connect, you can choose Read only: the server then hides the tools that send, edit or delete messages, and also the tool that reads updates, and refuses them. You can still read the bot and a chat, count the members, check one member by user id and list the administrators.
The UsefulAPI account tools are separate. telegram_usage_status shows your usage and plan. telegram_upgrade gives plan options or a payment link; a change from Pro to Pro+ requires confirmation. telegram_cancel_subscription also requires confirmation and ends the subscription at the end of the current period. telegram_request_feature sends us a feature request. These tools do not change Telegram data.
What do I need?
A Telegram bot and its token. Open @BotFather in Telegram and send /newbot, or send /mybots and choose API Token for a bot that you already have. Add the bot to the group or channel where it must post.
See the Telegram setup steps for Claude, ChatGPT, Cursor and other MCP clients.