Connect Telegram to OpenClaw on Operator.io
Telegram is a fast, secure cloud messaging app for individuals and groups. It offers robust privacy and real-time chat features.
Automate Telegram with AI
Your OpenClaw agent lives on Operator and treats Telegram as one more service it can drive. Send it an outcome in a Telegram or Discord message and it works out which of the 18 Telegram actions to run, then runs them.
Your agent reaches Telegram directly or through connectors like Composio MCP and Pipedream MCP, which handle the sign in and token refresh for you, so there is nothing to wire up and no API keys to paste.
What your agent can do with Telegram
Your agent can call any of these Telegram actions by name as part of a larger task. Ask for the outcome you want and it picks the right ones.
Answer Callback Query
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
Export Chat Invite Link
Generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.
Delete Message
Delete a message, including service messages. Limitations: cannot delete messages older than 48 hours in groups, forwarded messages, or content in protected chats (returns 400 'message can’t be deleted'). Bot must have delete/manage righ...
Edit Message
Edit text messages sent by the bot. Only bot-authored messages can be edited; editing messages from other users will fail. In groups, the bot must have edit permissions.
Forward Message
Forward messages of any kind. Service messages can't be forwarded.
Get Chat Info
Get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). The bot must be a member of or have access to the target chat; calls fail if the bot w...
Get Chat Administrators
Get a list of administrators in a chat. On success, returns an Array of ChatMember objects containing information about all chat administrators except other bots. Only meaningful for supergroups and channels; private chats yield no usefu...
Get Chat History
Get chat history messages via the getUpdates polling method, filtered by chat_id. Returns only updates from the specified chat. Bot can only retrieve messages sent after it joined the chat; missing older messages is expected. Requires no...
Get Chat Member
Get a chat member's status/role (including the bot itself) to preflight permissions and troubleshoot 403/empty-history issues. Use before sending messages to verify bot membership and permissions.
Get Chat Members Count
Get the number of members in a chat. The bot must be an administrator in the chat for this to work. Insufficient admin permissions surface as authorization errors, not as a zero or empty count.
Get Bot Info
Get basic information about the bot using the Bot API getMe method. Returns fields like id, username, first_name, and capabilities. If the response returns ok=false, the bot token is invalid or revoked and must be replaced before any oth...
Get Updates
Use this method to receive incoming updates using long polling. An Array of Update objects is returned. IMPORTANT: This method will not work if an outgoing webhook is set up. Webhooks and getUpdates are mutually exclusive — call deleteWe...
Send Document
Send general files (documents) to a Telegram chat using the Bot API. Prefer over TELEGRAM_SEND_PHOTO when original file format or image resolution must be preserved. Rapid sends trigger flood control (HTTP 429 with `retry_after` seconds)...
Send Location
Send point on the map location to a Telegram chat using the Bot API.
Send Message
Send a text message to a Telegram chat using the Bot API. Bots must be members of target groups/channels with post rights. Rate limit: ~1 msg/sec per chat, ~30 msg/sec globally; exceeding returns 429 with retry_after seconds that must be...
Send Photo
Send photos to a Telegram chat using the Bot API. Telegram compresses and re-encodes images; use TELEGRAM_SEND_DOCUMENT to preserve original resolution/format. Each call produces a separate post; no media-group/album support. Returns HTT...
Send Poll
Send a native poll to a Telegram chat using the Bot API.
Set Bot Commands
Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands.
How to connect Telegram
You authorize Telegram once from your dashboard. Operator holds the connection and refreshes the access tokens on its own, so your agent keeps working with Telegram without you signing in again. The same setup unlocks every other app your agent can reach, so you only do it once.
When you are ready, the get started guide walks through standing up your OpenClaw agent.
Common questions about Telegram
- How do I connect Telegram to Operator?
- You authorize Telegram once from your Operator dashboard. Operator holds the connection and refreshes the access token for you, so your agent keeps working with Telegram without you signing in again.
- Can my agent read and post in Telegram for me?
- Yes. It can post messages, reply in threads, search history, and pull out what matters from a busy conversation. Point it at a channel and it summarizes the thread back to you, or posts an update when something changes in another app you have connected.
- Do I need to write code or manage Telegram API keys?
- No code and no API keys. You authorize Telegram through a normal sign in and Operator handles the connection, so there is nothing to wire up or host.
- Can my agent use Telegram together with my other apps?
- Yes. The same agent reaches every app you connect, so it can move between Telegram and tools like Gmail, Slack, Discord in one job, reading from one and acting in another without you wiring anything between them.
More apps to automate
Apps your agent runs alongside Telegram, or browse all integrations.
Put your agent on Telegram
Sign in, connect Telegram, and hand your agent the work. Your first week is free.
Try for free