Telegram MCP by usefulapi
v1.9.1Read chats and members; send, edit and delete messages with a bot in Telegram.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
telegram_get_me Get the bot
Return the bot's own profile (id, name, username, group-join and inline settings). Use it to confirm the token works. Bot API: getMe.
telegram_get_chat Get a chat
Get the details of a chat the bot belongs to: type, title, username, description, pinned message, permissions. Bot API: getChat.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. |
telegram_get_chat_member_count Count chat members
Get the number of members in a chat. Bot API: getChatMemberCount.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. |
telegram_get_chat_member Get a chat member
Get one member of a chat: status (creator, administrator, member, restricted, left, kicked) and rights. Bot API: getChatMember.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. | |
user_id * | integer | Telegram user id. |
telegram_get_chat_administrators List chat administrators
List the administrators of a group or channel (not other bots' hidden admins). Bot API: getChatAdministrators.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. |
telegram_get_updates Get pending updates
Read the messages and events that users sent to the bot and that wait in Telegram's queue (short poll, no wait). Without offset the same updates return again. A positive offset above an update_id, or a negative offset, deletes older updates in Telegram (this cannot be undone). allowed_updates changes the bot's saved update filter. Fails with HTTP 409 if the bot has a webhook. Bot API: getUpdates.
| Parameter | Type | Description |
|---|---|---|
allowed_updates | array | Update types to receive, for example ["message","callback_query"]. |
limit | integer | Number of updates, 1-100 (default 100). |
offset | integer | First update_id to return. A value above an update_id confirms and deletes that update and all older ones. |
telegram_send_message Send a message
WRITE: send a text message from the bot to a chat. The message is visible to real people and cannot be unsent except with telegram_delete_message. Bot API: sendMessage.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. | |
text * | string | Message text, 1-4096 characters. |
disable_notification | boolean | Send silently. |
message_thread_id | integer | Forum topic id. |
parse_mode | string | Formatting mode. Omit for plain text. |
reply_to_message_id | integer | Reply to this message id in the same chat. |
telegram_edit_message_text Edit a message
WRITE: change the text of a message that the bot sent. This replaces the old text. Bot API: editMessageText.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. | |
message_id * | integer | Message id inside the chat. |
text * | string | New text, 1-4096 characters. |
parse_mode | string | Formatting mode. Omit for plain text. |
telegram_delete_message Delete a message
WRITE: delete a message. This cannot be undone. A bot can delete its own messages and incoming private-chat messages. In groups it needs the delete-messages admin right for other messages. Telegram allows deletion only for messages up to 48 hours old in most cases. Bot API: deleteMessage.
| Parameter | Type | Description |
|---|---|---|
chat_id * | Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat. | |
message_id * | integer | Message id inside the chat. |