> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Telegram in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/telegram
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) 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](https://metorial.com/docs/platform/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

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **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.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Telegram.

4. **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:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search telegram
```

## Employee: connect Telegram

### In the portal

1. **Open Telegram in the catalog**

   Sign in to your portal and open Telegram. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your bot token (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search telegram
metorial setup <catalog-item-id>
```

`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.

```bash
metorial list telegram
metorial client list
metorial install <client-identifier> <integration-id>
```

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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list telegram
metorial tools <integration-id>
metorial call <integration-id> get_chat -d '{"chatId":"<chat-id>"}'
```

`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. Needs `chatId`.
- `get_file`: Retrieve file information for a file shared in Telegram and provide it as a downloadable file. Needs `fileId`.
- `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. Needs `callbackQueryId`.
- `pin_message`: Pin or unpin a message in a chat. Needs `chatId` and `action`.
- `send_poll`: Create and send a poll or quiz to a chat. Needs `chatId`, `question` and `options`.
- `answer_inline_query`: Respond to an inline query with a list of results. Needs `inlineQueryId` and `results`.
- `send_message`: Send a text message to a Telegram chat, group, supergroup, or channel. Needs `chatId` and `text`.
- `forward_message`: Forward a message from one chat to another. Needs `chatId`, `fromChatId` and `messageId`.
- `send_media`: Send a photo, document, audio, or video message to a chat. Needs `chatId`, `mediaType` and `mediaUrl`.
- `update_chat`: Update a chat's title, description, or create an invite link. Needs `chatId`.
- `edit_message`: Edit the text of a previously sent message, or the caption of a photo, video, audio, or document message. Needs `text`.
- `send_invoice`: Send a payment invoice to a user or chat. Needs `title`, `description`, `invoicePayload`, `currency` and `prices`.
- `stop_poll`: Stop a live poll in a chat, freezing its current results. Needs `chatId` and `messageId`.
- `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. Needs `chatId`, `userId` and `action`.
- `delete_message`: Delete a message from a chat. Needs `chatId` and `messageId`.

## 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](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Telegram there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Telegram on metorial.com](https://metorial.com/integrations/telegram): the integration overview