Telegram MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TRANSPORT | No | Transport mode (e.g., 'http' for remote deployment) | stdio |
| TELEGRAM_BOT_TOKEN | Yes | The Telegram bot token from BotFather |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| telegram_send_messageA | Send a text message to a Telegram chat, group, channel, or user via the bot. This is the primary tool for pushing notifications, alerts, or updates into Telegram — e.g. from a scheduled routine or automation. Args:
Returns: Confirmation text including the chat and the new message_id (needed later to edit/delete/pin it). Error Handling:
|
| telegram_edit_message_textA | Edit the text of a previously sent bot message. Only messages sent by this bot can be edited, and only if they were sent less than 48 hours ago. Args:
Returns: Confirmation that the message was updated. Error Handling:
|
| telegram_delete_messageA | Permanently delete a message from a chat. This cannot be undone. Bots can always delete their own messages. Deleting other users' messages requires the bot to have admin/delete rights in a group or channel. Args:
Returns: Confirmation of deletion. Error Handling:
|
| telegram_pin_chat_messageA | Pin a message at the top of a chat. Requires the bot to have pin permissions in groups/channels (not required for private chats with the bot). Args:
Returns: Confirmation of pinning. Error Handling:
|
| telegram_unpin_chat_messageA | Unpin a message (or the most recent pin) in a chat. Args:
Returns: Confirmation of unpinning. |
| telegram_send_photoA | Send an image to a Telegram chat by URL, with an optional caption. Args:
Returns: Confirmation with the new message_id. Error Handling:
|
| telegram_send_documentA | Send a file (PDF, CSV, ZIP, etc.) to a Telegram chat by URL, with an optional caption. Args:
Returns: Confirmation with the new message_id. Error Handling:
|
| telegram_get_meA | Return basic info about the bot itself (username, ID, display name). Useful to verify the configured TELEGRAM_BOT_TOKEN is valid and to get the bot's @username so a user can start a chat with it. Args: none Returns: JSON with id, username, first_name, is_bot. |
| telegram_get_chatA | Look up details about a chat: title/name, type (private/group/supergroup/channel), description, and invite link if available. Args:
Returns: JSON with id, type, title/name, description. Error Handling:
|
| telegram_get_updatesA | Fetch recent incoming updates the bot has received (messages sent to it, chats it was added to, etc.). This is the primary way to discover a chat_id: ask the user to send any message to the bot (or add it to a group), then call this tool to read the resulting update and find the chat.id to use with telegram_send_message. Note: calling this tool consumes the updates (Telegram's long-polling semantics), so previously fetched updates won't reappear on the next call once acknowledged. Args:
Returns: JSON list of updates with chat_id, chat type/title, sender, and message text for each. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/germankingerman-byte/telegram-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server