Telegram MCP by usefulapi

v1.9.1
io.usefulapi/telegram Checked 3 days ago Published 1 day ago

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

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

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

ParameterTypeDescription
chat_id *Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat.
user_id *integerTelegram 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.

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

ParameterTypeDescription
allowed_updatesarrayUpdate types to receive, for example ["message","callback_query"].
limitintegerNumber of updates, 1-100 (default 100).
offsetintegerFirst 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.

ParameterTypeDescription
chat_id *Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat.
text *stringMessage text, 1-4096 characters.
disable_notificationbooleanSend silently.
message_thread_idintegerForum topic id.
parse_modestringFormatting mode. Omit for plain text.
reply_to_message_idintegerReply 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.

ParameterTypeDescription
chat_id *Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat.
message_id *integerMessage id inside the chat.
text *stringNew text, 1-4096 characters.
parse_modestringFormatting 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.

ParameterTypeDescription
chat_id *Chat id (number, negative for groups) or @channelusername. The bot must be a member of the chat.
message_id *integerMessage id inside the chat.