Set up Telegram in Metorial for Claude, ChatGPT and Cursor
Share Telegram with your team in Claude, ChatGPT and Cursor through Metorial: bot token sign-in, 17 tools (3 read-only).
To give your team Telegram in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Telegram integration in a Metorial portal, and each person connects with a bot token. Agents can send, edit, delete, forward, and pin messages in private chats, groups, supergroups, and channels. The integration has 17 tools, 3 read-only, 12 write and 2 destructive, plus 8 triggers.
What you'll learn
- How an admin shares Telegram in a portal and how each person connects
- What Telegram asks for when you connect, and where to find it
- How to keep the 3 read-only tools and reject the other 14
Before you start
- A portal with at least one access group
- A bot token from Telegram for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Bot Token | API token | token |
Bot Token
To connect, a person enters:
token: Telegram Bot token obtained from @BotFather
Admin: share Telegram in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Telegram. For how members connect, choose Each person connects so everyone enters their own bot token, or Shared connection to enter one bot token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Telegram.
Choose who gets it
Add the access groups that should see Telegram. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Telegram integration. Once it exists, check which groups have it:
Employee: connect Telegram
In the portal
Open Telegram in the catalog
Sign in to your portal and open Telegram. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your bot token (token).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Telegram connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 3 read-only tools, such as get_chat and get_file, and lose the 12 write tools, such as send_poll or stop_poll, and the 2 destructive tools, such as delete_message or manage_chat_member.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 17 tools, minus any you rejected. get_chat needs chatId, so replace the placeholders. It retrieves detailed information about a chat including its type, title, description, member count, and permissions.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (3)
get_chat: Retrieve detailed information about a chat including its type, title, description, member count, and permissions. NeedschatId.get_file: Retrieve file information for a file shared in Telegram and provide it as a downloadable file. NeedsfileId.get_bot_info: Get the connected Telegram bot's identity and settings: its user ID, name, username, and whether it can join groups, read all group messages, and answer inline queries.
Write tools (12)
answer_callback_query: Respond to a callback query from an inline keyboard button press. NeedscallbackQueryId.pin_message: Pin or unpin a message in a chat. NeedschatIdandaction.send_poll: Create and send a poll or quiz to a chat. NeedschatId,questionandoptions.answer_inline_query: Respond to an inline query with a list of results. NeedsinlineQueryIdandresults.send_message: Send a text message to a Telegram chat, group, supergroup, or channel. NeedschatIdandtext.forward_message: Forward a message from one chat to another. NeedschatId,fromChatIdandmessageId.send_media: Send a photo, document, audio, or video message to a chat. NeedschatId,mediaTypeandmediaUrl.update_chat: Update a chat's title, description, or create an invite link. NeedschatId.edit_message: Edit the text of a previously sent message, or the caption of a photo, video, audio, or document message. Needstext.send_invoice: Send a payment invoice to a user or chat. Needstitle,description,invoicePayload,currencyandprices.stop_poll: Stop a live poll in a chat, freezing its current results. NeedschatIdandmessageId.get_updates: Fetch recent incoming updates for the bot, such as messages, button presses, inline queries, and membership changes.
Destructive tools (2)
manage_chat_member: Manage a chat member by banning, unbanning, restricting, or promoting them. NeedschatId,userIdandaction.delete_message: Delete a message from a chat. NeedschatIdandmessageId.
Triggers
Telegram has 8 triggers, which fire on events in Telegram:
inline_query_received: Triggers when a user types "@botname query" in any chat, sending an inline query to the bot.payment_received: Triggers on payment-related events: shipping queries, pre-checkout queries, and purchased paid media.poll_updated: Triggers when a poll state changes (stopped polls or polls sent by the bot) or when a user changes their answer in a non-anonymous poll.chat_boost_updated: Triggers when a chat boost is added, changed, or removed.message_received: Triggers when a new message, edited message, channel post, or edited channel post is received by the bot.chat_member_updated: Triggers when a chat member's status changes, the bot's own member status changes, or a join request is received.reaction_updated: Triggers when a reaction to a message is changed by a user or when anonymous reaction counts change.callback_query_received: Triggers when a user presses an inline keyboard button and a callback query is received.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Telegram there
- Tool permissions: tool filters and what employees see
- Telegram on metorial.com: the integration overview