About chigwell/telegram-mcp
chigwell/telegram-mcp is an MCP server published by chigwell in the Developer Tools category: telegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings. Conduid read 157 tools from its source: add_chat_to_folder, add_contact, archive_chat, ban_user, block_user, clear_draft and 151 more. No package is published for it, so it installs from a source checkout.
The repository has 2.1K stars and 548 forks, is licensed Apache-2.0, and its last commit was on 30 Nov 2026. The latest release is v3.3.31 (25 Nov 2026). It follows v3.3.30 (24 Nov 2026), and the 5 most recent releases go back to v3.3.27 (21 Nov 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include groups, api, comms, messaging, admin and media.
Install
git clone https://github.com/chigwell/telegram-mcpTools (157)
add_chat_to_folderAdd a chat to an existing folder.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat ID or username to add |
| folder_id * | integer | The folder ID (get from list_folders) |
| pinned | boolean | Pin the chat in this folder (default False) |
add_contactAdd a new contact to your Telegram account.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| first_name | string | The contact's first name. |
| last_name | string | The contact's last name (optional). |
| phone | string | The phone number of the contact (with country code). Required if username is not provided. |
| username | string | The Telegram username (without @). Use this for adding |
archive_chatArchive a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
ban_userBan a user from a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | ID or username of the group/channel |
| user_id * | any | User ID or username to ban |
block_userBlock a user by user ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| user_id * | any | The Telegram user ID or username to block. |
clear_draftClear/delete a draft from a specific chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username to clear the draft from |
create_channelCreate a new channel or supergroup.| Parameter | Type | Description |
|---|---|---|
| about | string | |
| account | string | |
| megagroup | boolean | |
| title * | string |
create_folderCreate a new dialog folder.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| bots | boolean | Include all bots |
| broadcasts | boolean | Include all channels |
| chat_ids | array | List of chat IDs or usernames to include (optional) |
| contacts | boolean | Include all contacts |
| emoticon | string | Folder emoji (optional, e.g., "📁", "🏠", "💼") |
| exclude_archived | boolean | Exclude archived chats (default True) |
| exclude_muted | boolean | Exclude muted chats |
| exclude_read | boolean | Exclude read chats |
| groups | boolean | Include all groups |
| non_contacts | boolean | Include all non-contacts |
| title * | string | Folder name (required) |
create_forum_topicCreate a Telegram forum topic in a forum-enabled supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The forum-enabled supergroup ID or username. |
| icon_color | integer | Optional Telegram topic icon color integer. |
| icon_emoji_id | integer | Optional custom emoji document ID for the topic icon. |
| title * | string | Topic title. |
create_groupCreate a new group or supergroup and add users.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| title * | string | Title for the new group |
| user_ids * | array | List of user IDs or usernames to add to the group |
create_pollCreate a poll in a chat using Telegram's native poll feature.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name to use (optional). |
| chat_id * | any | The ID or username of the chat to send the poll to. |
| close_date | string | Optional close date in ISO format (YYYY-MM-DD HH:MM:SS). |
| multiple_choice | boolean | Whether users can select multiple answers. |
| options * | any | List of answer options (2-10 options). Can be a list of strings or option objects, or a JSON string / comma-separated string. |
| public_votes | boolean | Whether votes are public. |
| question * | string | The poll question. |
| quiz_mode | boolean | Whether this is a quiz (has correct answer). |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics); 1 is General. Creates the poll in that topic in a forum-enabled community/supergroup. |
delete_chat_historyClear the full message history of a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat ID or username. |
| max_id | integer | Delete messages up to this ID; 0 deletes all messages (default). |
| revoke | boolean | If True, delete for both parties (default False = only for you). |
delete_chat_photoDelete the photo of a chat, group, or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
delete_contactDelete a contact by user ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| user_id * | any | The Telegram user ID or username of the contact to delete. |
delete_contact_aliasForget one remembered alias. Exact match only — deleting the wrong memory is| Parameter | Type | Description |
|---|---|---|
| account | string | |
| alias * | string |
delete_folderDelete a folder. Chats in the folder are preserved, only the folder is removed.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| folder_id * | integer | The folder ID to delete (get from list_folders) |
delete_forum_topicDelete a forum topic together with all of its messages. This cannot be undone.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The forum-enabled supergroup ID or username. |
| topic_id * | integer | ID of the topic to delete. |
delete_messageDelete a message by ID. The message must belong to chat_id; otherwise nothing is deleted.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | |
| message_id * | integer |
delete_messages_bulkDelete multiple messages in a single call. If any ID is not a message of chat_id,| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat ID or username. |
| message_ids * | array | List of message IDs to delete. |
| revoke | boolean | If True, delete for both parties (default True). Ignored for channels. |
delete_profile_photoDelete one of your profile photos.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| photo_id | any | Avatar id from list_photos("me") to delete that photo. Pass it as a string: avatar ids go past 2^53, so a JSON number can arrive rounded and point at the wrong photo. Omit it to delete the current profile photo. |
delete_scheduled_messageDelete one or more scheduled (pending) messages from a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| message_ids * | array | List of scheduled message IDs to delete. |
demote_adminDemote a user from admin in a group/channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| group_id * | any | ID or username of the group/channel |
| user_id * | any | User ID or username to demote |
disable_incoming_feedDisable the incoming event feed (stops writing to the feed file).download_mediaDownload media from a message in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| file_path | string | Optional absolute or relative path under allowed roots. If omitted, saves into `<first_root>/downloads/` (or directly into `<first_root>/` if the root is already a downloads directory). |
| include_metadata | boolean | Return a JSON object with the saved path, original filename when supplied by Telegram, byte count, and SHA-256. It also includes the signed download URL when configured. |
| media_id | any | Optional document/photo id to download when the message is a rich (block-format) post with several embedded media. Get the ids from the message's "rich_media" records, as the string shown there (the ids exceed 2^53, so a JSON number would be rounded by many clients). Without it, the first embedded media is downloaded. Passing it for a message with regular media is an error — pick the media by message instead. |
| message_id * | integer | The message ID containing the media. |
edit_admin_rightsSet granular admin rights for a user in a supergroup or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| add_admins | boolean | can add new admins with their own rights |
| anonymous | boolean | admin actions appear anonymous |
| ban_users | boolean | can restrict/ban members |
| change_info | boolean | can change chat info (title, photo, description) |
| chat_id * | any | ID or username of the supergroup/channel. |
| delete_messages | boolean | can delete messages |
| edit_messages | boolean | can edit other users' messages |
| invite_users | boolean | can invite new members |
| manage_call | boolean | can manage voice/video chats |
| manage_topics | boolean | can create, edit, close and reopen forum topics |
| mode | any | |
| other | boolean | |
| pin_messages | boolean | can pin messages |
| post_messages | boolean | can post in channel (channel-only) |
| rank | string | Custom admin title (max 16 chars). In replace mode, omitted or "" means no custom title; in patch mode, omitted keeps the current one. |
| user_id * | any | User ID or username. |
edit_chat_aboutEdit the description ("About") of a chat, group, or channel.| Parameter | Type | Description |
|---|---|---|
| about * | string | New description text. Telegram limits About to 255 characters. |
| account | string | |
| chat_id * | any | The ID or username of the chat. |
edit_chat_photoEdit the photo of a chat, group, or channel. Requires a file path to an image.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | |
| file_path * | string |
edit_chat_titleEdit the title of a chat, group, or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | |
| title * | string |
edit_forum_topicEdit a forum topic in a forum-enabled supergroup. Pass only the fields to change.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The forum-enabled supergroup ID or username. |
| closed | boolean | True closes the topic, False reopens it. |
| hidden | boolean | True hides the General topic, False shows it (General topic only). |
| icon_emoji_id | integer | New custom emoji document ID for the icon (0 removes it). |
| title | string | New topic title. |
| topic_id * | integer | ID of the topic to edit. |
edit_messageEdit a message you sent.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| custom_emojis | array | Entries {"emoji": fallback, "id": document ID} as returned in custom_emojis by message-reading tools. Every standalone occurrence of each fallback emoji in the text becomes that custom emoji; a fallback that is not in the text is an error. Plain-text messages only — leave parse_mode unset. Combines with format_date. |
| format_date | string | Exact date text in the new_text to render as a tappable date chip. Plain-text messages only — leave parse_mode unset. |
| message_id * | integer | The ID of the message to edit. |
| new_text * | string | The replacement text. |
| parse_mode | string | Optional formatting mode — same values as send_message: 'md'/'markdown', 'html', or 'rich'/'rich_markdown'/'rich_html' for full server-side formatting (tables, headings, formulas; REQUIRES Telegram Premium — without it nothing is changed and a structured telegram_premium_required result is returned). Omitting it keeps the previous behavior of this tool: Telethon's client default (Markdown), so **bold** in existing edits still renders. |
edit_message_mediaReplace the media in one message you sent.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| caption | string | |
| chat_id * | any | |
| file_path * | string | |
| message_id * | integer | |
| parse_mode | string |
enable_forum_topicsEnable Telegram forum topics for a supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The supergroup ID or username. |
| tabs | boolean | Whether Telegram should display topics as tabs (default True). |
enable_incoming_feedCLAUDE CODE ONLY. Enable callback mode: a background task appends every| Parameter | Type | Description |
|---|---|---|
| settle_ms | integer | Quiet period after the last message before a burst is written (default 6000 = 6s). |
export_chat_historyExport the complete message history (or up to limit/offset_date) of one or more chats to a JSON file.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Single chat ID/username, or a list of chat IDs/usernames to export history from. |
| include_media_metadata | boolean | If True, include media type labels in each message record. Default True. |
| limit | integer | Optional maximum number of messages to export per chat. When None (default), exports full history. |
| offset_date | string | Optional cutoff date (ISO format, e.g. '2026-01-01' or '2026-01-01T00:00:00Z'). Only messages before this date are retrieved. |
| output_path * | string | Absolute or relative file path under allowed roots to write the JSON export. The file contains a JSON object with a top-level "chats" key. |
| resume | boolean | If True and output_path already exists, skip chats that were already exported in a previous run (keyed by chat_id). Default True. |
export_chat_inviteExport a chat invite link.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
export_contactsExport all contacts as a JSON string.| Parameter | Type | Description |
|---|---|---|
| account | string |
export_unread_messagesExport all unread messages from one or more chats to a JSON file.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_ids * | array | List of chat IDs or usernames to export unread messages from. |
| include_media_metadata | boolean | If True, include media type labels in each message record. Default True. |
| output_path * | string | Absolute or relative file path under allowed roots to write the JSON export. The file contains a JSON object with a top-level "chats" key. |
| resume | boolean | If True and output_path already exists, skip chats that were already exported in a previous run (keyed by chat_id). Default True. |
forward_messageForward a message (or several) from a source chat to a destination chat.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account label for multi-account mode. |
| drop_author | boolean | Hide forward attribution (default False), retaining media and captions. Does not bypass Telegram's forwarding restrictions. |
| expand_album | boolean | If True (default) and message_id is a single int, the server expands albums automatically. No effect on list inputs. |
| from_chat_id * | any | Source chat (id or @username). |
| message_id * | any | A single message id (int) OR a list of ids. Single ints are auto-expanded to the full album when applicable. |
| send_as | any | Sender ID or username allowed for this destination. Discover choices with get_send_as. Omission keeps Telegram's saved default, which is not necessarily your user identity. |
| silent | boolean | Send without a notification sound (default False). |
| to_chat_id * | any | Destination chat (id or @username). |
| topic_id | integer | Positive forum topic ID (top_msg_id), where supported; omitted by default. This is not a monoforum reply_to target. |
forward_messagesForward a BATCH of messages from a source chat to a destination chat in| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account label for multi-account mode. |
| from_chat_id * | any | Source chat (id or @username). |
| message_ids * | array | List of message ids to forward, in any order (e.g. [12345, 12346]). Must contain at least one id. |
| silent | boolean | Send without a notification sound (default False). |
| to_chat_id * | any | Destination chat (id or @username). |
| topic_id | integer | Optional positive forum topic ID (from list_topics) in the destination chat to forward the batch into. The result then also lists the destination message IDs Telegram returned for this request. |
get_adminsGet all admins in a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_banned_usersGet all banned users in a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_blocked_usersGet a list of blocked users.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_bot_infoGet information about a bot by username.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| bot_username * | string |
get_channel_statsGet the statistics Telegram shows to admins of a channel or supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The channel/supergroup ID or username. |
| graphs | array | Graph names to include. Default: growth, followers, members, mute, interactions, messages (those the chat has). [] for none; available_graphs in the result lists all names. |
get_chatGet detailed information about a specific chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
get_chatlist_invitePreview a shared folder invite (t.me/addlist/<slug>) without joining it.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| link * | string | The folder slug, a https://t.me/addlist/<slug> link, or a tg://addlist?slug=<slug> link. |
get_chatsGet a paginated list of chats.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| page | integer | Page number (1-indexed). |
| page_size | integer | Number of chats per page. |
get_common_chatsList chats shared with a specific user.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| limit | integer | Maximum number of shared chats to return (max 100). |
| max_id | integer | Pagination cursor — pass the last chat ID from the previous page to fetch older shared chats. Use 0 (default) for the first page. |
| user_id * | any | The user ID or username to check shared chats for. |
get_contact_chatsList all chats involving a specific contact.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| contact_id * | any | The ID or username of the contact. |
get_contact_idsGet all contact IDs in your Telegram account.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_custom_emoji_packOpen a custom emoji pack (by short name or t.me/addemoji/... link) and| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account alias or phone number. |
| pack * | string | The emoji pack short name or URL (e.g. 'AnimatedDogs', 't.me/addemoji/AnimatedDogs', 'https://t.me/addstickers/...'). |
get_custom_emoji_packsBrowse installed or featured custom emoji packs, or search for emoji packs by query.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account alias or phone number. |
| featured | boolean | If True, fetches featured emoji packs instead of installed ones. |
| limit | integer | Maximum number of emoji packs to return (default: 50). |
| query | string | Optional search keyword to search for emoji packs. |
get_direct_chat_by_contactFind a direct chat with a specific contact by name, username, or phone.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| contact_query * | string | Name, username, or phone number to search for. |
get_draftsGet all draft messages across all chats.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_folderGet detailed information about a specific folder including all included chats.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| folder_id * | integer | The folder ID (get from list_folders) |
get_folder_limitsRead effective Premium-aware folder, explicit-chat and pin limits from app config.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_folder_snapshotRead complete folder definitions and order without chat content or access hashes.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_full_chatGet full info of a channel or group including description/about text.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The channel/group username (without @) or ID. |
get_full_userGet full profile info of a Telegram user including bio/about text,| Parameter | Type | Description |
|---|---|---|
| account | string | |
| username * | any | The username (without @) or user ID to look up. |
get_gif_searchSearch for GIFs by query. Returns a list of Telegram document IDs (not file paths).| Parameter | Type | Description |
|---|---|---|
| account | string | |
| limit | integer | Max number of GIFs to return. |
| query * | string | Search term for GIFs. |
get_historyGet full chat history (up to limit).| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| limit | integer | Maximum number of messages to retrieve (default 100). |
| topic_id | any | Forum topic ID (from list_topics). If set, Telegram returns only that topic's thread, including replies nested inside it, and `limit` counts messages of the topic rather than of the whole group. Use 1 for General. When None (default), all messages are returned. A chat limited to forum topics by TELEGRAM_ALLOWED_CHAT_IDS is read one allowed topic at a time; when only one is allowed it is the default. |
get_invite_linkGet the invite link for a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_last_interactionGet the most recent message with a contact.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| contact_id * | any | The ID or username of the contact. |
get_meGet your own user information.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_media_infoGet info about media in a message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| message_id * | integer | The message ID. |
get_member_admin_statusGet one member's role, rank and full admin-rights map in a supergroup or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | ID or username of the supergroup/channel. |
| user_id * | any | User ID or username of the member. |
get_message_contextRetrieve context around a specific message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| context_size | integer | Number of messages before and after to include. |
| message_id * | integer | The ID of the central message. |
get_message_linkExport a t.me/... link for a specific message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The channel/supergroup ID or username. |
| message_id * | integer | The message ID to export a link for. |
| thread | boolean | If True, returns a link that opens the message inside its discussion thread (only meaningful for supergroups with linked discussion). |
get_message_reactionsGet the list of reactions on a message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username |
| limit | integer | Maximum number of users to return per reaction (default: 50) |
| message_id * | integer | The message ID to get reactions from |
get_message_read_byList user IDs who have read a specific message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| message_id * | integer | The message ID to check read receipts for. |
get_message_statsGet Telegram's statistics for one channel post: views over time and| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The channel ID or username. |
| message_id * | integer | The post's message ID. |
get_messagesGet paginated messages from a specific chat, or exact messages by ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| message_ids | array | Optional list of exact message IDs to fetch instead of a page. IDs that do not exist (or fall outside the allowed topics) are reported on a final "Not found: [...]" line. |
| page | integer | Page number (1-indexed). |
| page_size | integer | Number of messages per page. |
| topic_id | any | Forum topic ID (from list_topics). If set, only that topic's thread is returned server-side and `page`/`page_size` count messages of the topic. Use 1 for General (filtered client-side, like the whole chat). Must be within the TELEGRAM_ALLOWED_CHAT_IDS topic limit when one is set. |
get_messages_afterMessages of a chat newer than `after_id`, oldest first, as JSON records -| Parameter | Type | Description |
|---|---|---|
| account | string | |
| after_id | integer | Return messages with a larger id (exclusive, not negative). |
| chat_id * | any | The ID or username of the chat. |
| limit | integer | Max messages (default 50, at most 100). |
get_participantsList participants in a group or channel with pagination.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The group or channel ID or username. |
| page | integer | Page number (1-indexed, default 1). |
| page_size | integer | Number of participants per page (default 200, max 1000). |
get_photo_sheetView many photos of a peer as one labelled collage, for a single image cost.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The user, group, supergroup or channel ID or username. |
| columns | integer | Optional fixed column count; omitted lays out automatically. |
| limit | integer | How many photos to place on the sheet. "avatars" follow profile order, which is not chronological; "messages" are newest first. |
| source | string | "avatars" for profile pictures, "messages" for photos posted in the chat. |
get_pinned_messagesGet all pinned messages in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_privacy_settingsGet your privacy settings for last seen status.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_recent_actionsGet recent admin actions (admin log) in a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_scheduled_messagesList all scheduled (pending) messages in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
get_send_asList Telegram's allowed send-as peers for this destination where supported.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
get_sticker_setsGet all sticker sets.| Parameter | Type | Description |
|---|---|---|
| account | string |
get_user_photosGet profile photos of a user.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| limit | integer | |
| user_id * | any |
get_user_statusGet the online status of a user.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| user_id * | any |
import_chat_inviteImport a chat invite by hash.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| hash * | string |
import_contactsImport a list of contacts. Each contact should be a dict with phone, first_name, last_name.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| contacts * | array |
incoming_feed_statusReport whether the incoming event feed is enabled, its file path, andinspect_documentInspect and read the contents of a document, PDF, or image from a Telegram message| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID, username, or alias. |
| message_id * | integer | The ID of the message containing the document or media. |
invite_to_groupInvite users to a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| group_id * | any | The ID or username of the group/channel. |
| user_ids * | array | List of user IDs or usernames to invite. |
join_chat_by_linkJoin a chat by invite link.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| link * | string |
leave_chatLeave a group or channel by chat ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username to leave. |
list_accountsList all configured Telegram accounts with profile info.list_callsList voice and video calls from the account's call log, newest first.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id | any | Only calls with this user. Omit for calls with everyone. |
| from_date | string | Calls on or after this day (YYYY-MM-DD, UTC). |
| limit | integer | Maximum number of calls to return (1 to 500). |
| to_date | string | Calls on or before this day (YYYY-MM-DD, UTC). |
list_chatsList available chats with metadata.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| archived | boolean | If True, only archived chats. If False, only non-archived. If None, all chats. |
| chat_type | string | Filter by chat type ('user', 'group', 'channel', or None for all) |
| limit | integer | Maximum number of accessible chats to retrieve (applied before the other filters, so fewer results may be returned). |
| unmuted_only | boolean | If True, only return unmuted chats. |
| unread_only | boolean | If True, only return chats with unread messages. |
| with_about | boolean | If True, fetch each chat's description/bio via an additional API call per chat (slower — use only when needed for dispatch disambiguation). |
list_contact_aliasesList remembered contacts, one row per person with all of their aliases.| Parameter | Type | Description |
|---|---|---|
| account | string |
list_contactsList all contacts in your Telegram account.| Parameter | Type | Description |
|---|---|---|
| account | string |
list_foldersGet all dialog folders (filters) with their IDs, names, and emoji.| Parameter | Type | Description |
|---|---|---|
| account | string |
list_forum_topic_iconsList the custom emoji Telegram allows as forum topic icons.| Parameter | Type | Description |
|---|---|---|
| account | string |
list_inline_buttonsList a message's buttons (inline or reply keyboard): index for press_inline_button,| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat or bot where the keyboard is. |
| limit | integer | How many recent messages to search when message_id is omitted. |
| message_id | any | Message to inspect. If omitted, the latest message with buttons. |
list_messagesRetrieve messages with optional filters.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat to get messages from. |
| from_date | string | Filter messages starting from this date (format: YYYY-MM-DD). |
| limit | integer | Maximum number of messages to retrieve. |
| search_query | string | Filter messages containing this text. |
| to_date | string | Filter messages until this date (format: YYYY-MM-DD). |
| topic_id | any | Forum topic ID (from list_topics). If set, only that topic's messages are returned: without search_query the thread is read server-side, with search_query the matches are filtered to the topic client-side (Telegram search ignores reply_to). Use 1 for General (always filtered client-side). Must be within the TELEGRAM_ALLOWED_CHAT_IDS topic limit when one is set. |
list_photosIndex the photos of any peer as text, without transferring any image.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The user, group, supergroup or channel ID or username. |
| limit | integer | Maximum number of photos to index. "avatars" follow the order the peer arranged them in their profile, which is not chronological; "messages" are newest first. Each entry carries its own date. |
| source | string | "avatars" for profile pictures, "messages" for photos posted in the chat. |
list_topicsRetrieve forum topics from a supergroup with the forum feature enabled.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The forum-enabled supergroup ID or username. |
| limit | integer | Maximum number of topics to retrieve. |
| offset_topic | integer | Topic ID offset for pagination. |
| search_query | string | Optional query to filter topics by title. |
mark_as_readMark all messages as read in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
mark_messages_readMark processed incoming messages as read in one chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | integer | |
| dry_run | boolean | |
| message_ids * | array |
mark_topic_as_readMark all messages as read in a specific forum topic of a supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The forum-enabled supergroup ID or username. |
| topic_id * | integer | The forum topic ID. |
mute_chatMute notifications for a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
open_photoView one photo of any peer at full resolution.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The user, group, supergroup or channel ID or username. |
| message_id | integer | A message id from list_photos, to open a photo posted in the chat. |
| photo_id | integer | An avatar id from list_photos. Omit both ids for the current avatar. |
| save_path | string | Optional path under allowed roots to also keep a copy. |
pin_messagePin a message in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| message_id * | integer | The ID of the message to pin. |
| notify | boolean | Notify chat members about the pin. Default False pins silently. |
prepare_uploadGet an upload URL for a file on the client's machine, to send it from this server.| Parameter | Type | Description |
|---|---|---|
| filename * | string | Name the file is stored and sent under, e.g. "report.pdf". |
press_inline_buttonPress a callback or game button (see list_inline_buttons). Returns the bot's| Parameter | Type | Description |
|---|---|---|
| account | string | |
| button_index | integer | |
| button_text | string | |
| chat_id * | any | Chat or bot where the inline keyboard exists. |
| message_id | any | Specific message ID to inspect. If omitted, searches |
preview_custom_emojiPreview or download a custom emoji by its Telegram document ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| document_id * | any | Telegram document ID of the custom emoji (from |
| save_path | string | |
| thumbnail | boolean |
promote_adminPromote a user to admin in a group/channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| group_id * | any | ID or username of the group/channel |
| rights | object | Admin rights to give (optional) |
| user_id * | any | User ID or username to promote |
remove_chat_from_folderRemove a chat from a folder.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat ID or username to remove |
| folder_id * | integer | The folder ID (get from list_folders) |
remove_reactionRemove your reaction from a message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username |
| message_id * | integer | The message ID to remove reaction from |
remove_userRemove a user from a group or channel WITHOUT banning them.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | ID or username of the group/channel |
| user_id * | any | User ID or username to remove |
reorder_foldersChange the order of folders in the folder list.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| folder_ids * | array | List of folder IDs in the desired order |
reply_to_messageReply to a specific message in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| custom_emojis | array | Entries {"emoji": fallback, "id": document ID} as returned in custom_emojis by message-reading tools. Every standalone occurrence of each fallback emoji in the text becomes that custom emoji; a fallback that is not in the text is an error. Plain-text messages only — leave parse_mode unset. Combines with format_date. |
| format_date | string | Exact date text in the reply to render as a tappable date chip. Plain-text messages only — leave parse_mode unset. |
| message_id * | integer | The message ID to reply to. |
| parse_mode | string | Optional formatting mode — same values as send_message: 'md'/'markdown', 'html', or 'rich'/'rich_markdown'/'rich_html' for full server-side formatting (tables, headings, formulas; REQUIRES Telegram Premium — without it nothing is sent and a structured telegram_premium_required result is returned). |
| silent | boolean | Send without a notification sound (default False). |
| text * | string | The reply text. |
resolve_phoneResolve a phone number to the Telegram user who owns it, without adding a contact.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| phone * | string | International number in E.164 form, starting with + and the country code, e.g. "+44 20 7946 0958". The caller must supply the country code: a local number such as "8 999 000-11-22" is rejected, not guessed at. Spaces, dashes, dots and parentheses are ignored. |
resolve_usernameResolve a username to a user, channel, or chat ID with structured metadata.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| username * | string |
save_draftSave a draft message to a chat or channel. The draft will appear in the Telegram| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username/channel to save the draft to |
| message * | string | The draft message text |
| no_webpage | boolean | If True, disable link preview in the draft |
| parse_mode | string | Optional formatting, kept in the draft as real entities. Use 'html' for <b>, <i>, <u>, <s>, <code>, <pre>, <a href="...">, <blockquote> (the only way to get underline), or 'md'/'markdown' for **bold**, __italic__, `code`. Omit (or 'plain') to save the text exactly as given. |
| reply_to_msg_id | integer | Optional message ID to reply to. In a forum the draft is saved in that message's topic. |
| topic_id | any | Optional forum topic ID (from list_topics) to save the draft in, with or without reply_to_msg_id; 1 is General. In a forum a draft without a topic shows in no topic, so pass it for a draft that replies to nothing and for a reply to a General message. |
search_contactsSearch for contacts by name, username, or phone number using Telethon's SearchRequest.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| query * | string | The search term to look for in contact names, usernames, or phone numbers. |
search_globalSearch for messages across all of the account's chats by text content.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| cursor | string | |
| page | integer | |
| page_size | integer | |
| query * | string |
search_messagesSearch for messages in a chat by text.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| limit | integer | Maximum number of messages to retrieve. |
| query * | string | Text to search for. |
| topic_id | any | Forum topic ID (from list_topics). If set, only matches in that topic are returned (Telegram search ignores reply_to, so the matches are filtered to the topic client-side). Use 1 for General. Must be within the TELEGRAM_ALLOWED_CHAT_IDS topic limit when one is set. |
search_public_chatsSearch for public chats, channels, or bots by username or title.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| limit | integer | |
| query * | string |
send_albumSend multiple photos/videos as one Telegram media group (album).| Parameter | Type | Description |
|---|---|---|
| account | string | |
| caption | string | Optional caption for the album. Telegram displays it on the first item. |
| chat_id * | any | The chat ID or username. |
| custom_emojis | array | Entries {"emoji": fallback, "id": document ID}, as in send_file. Plain-text captions only — leave parse_mode unset. |
| file_paths * | array | 2-10 absolute or relative file paths under allowed roots. |
| parse_mode | string | Optional caption formatting mode — same values as send_file: 'html', 'md'/'markdown' or 'plain'. If omitted, the client default applies (Markdown). |
| schedule_date | any | Optional. When set, the album is placed in the chat's scheduled queue instead of being sent now. Either an ISO-8601 string or a Unix timestamp (int). Naive datetimes are treated as UTC. |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics). Sends into that topic in a forum-enabled community/supergroup. Also works as reply_to for a message. |
send_contactSend a contact to a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| first_name * | string | Contact's first name. |
| last_name | string | Contact's last name (optional). |
| phone_number * | string | Contact's phone number. |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics); 1 is General. Sends into that topic in a forum-enabled community/supergroup. |
| vcard | string | Additional vCard data (optional). |
send_fileSend a file to a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| caption | string | Optional caption for the file or media group. |
| chat_id * | any | The chat ID or username. |
| custom_emojis | array | Entries {"emoji": fallback, "id": document ID} as returned in custom_emojis by message-reading tools. Every standalone occurrence of each fallback emoji in the caption becomes that custom emoji; a fallback that is not in the caption is an error. Plain-text captions only — leave parse_mode unset. |
| file_name | string | Optional file name shown in Telegram (single file only) instead of the name taken from file_path. Telegram itself rewrites names longer than about 64 bytes (spaces become "_", brackets are dropped); shorter names are kept. |
| file_path * | any | Absolute or relative path to the file under allowed roots. Pass a list of 2-10 paths to send them as one Telegram media group. |
| force_document | boolean | When true, send the original file as a document instead of letting Telegram turn images and videos into compressed photos or streamed videos. Applies to every file of a media group. |
| parse_mode | string | Optional caption formatting mode. Use 'html' for HTML tags (<b>, <i>, <code>, <pre>, <a href="...">), 'md' or 'markdown' for Markdown (**bold**, __italic__, `code`, ```pre```), or 'plain' to send the caption verbatim. If omitted, the client default applies (Markdown), as in earlier versions. Rich modes ('rich', 'rich_md', 'rich_markdown', 'rich_html') are not supported for captions. |
| schedule_date | any | Optional. When set, the file is placed in the chat's scheduled queue instead of being sent now. Either an ISO-8601 string (e.g. "2026-05-01T14:30:00" or "2026-05-01T14:30:00Z") or a Unix timestamp (int). Naive datetimes are treated as UTC. |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics). Sends into that topic in a forum-enabled community/supergroup. Also works as reply_to for a message. |
send_gifSend a GIF to a chat by Telegram GIF document ID (not a file path).| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| gif_id * | integer | Telegram document ID for the GIF (from get_gif_search, or a GIF saved in the account). |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics). Sends into that topic in a forum-enabled community/supergroup. Also works as reply_to for a message. |
send_messageSend a message to a specific chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| custom_emojis | array | Entries {"emoji": fallback, "id": document ID} as returned in custom_emojis by message-reading tools. Every standalone occurrence of each fallback emoji in the text becomes that custom emoji; a fallback that is not in the text is an error. Plain-text messages only — leave parse_mode unset. Combines with format_date. |
| format_date | string | Exact date text in the message to render as a tappable date chip. Plain-text messages only — leave parse_mode unset. |
| message * | string | The message content to send. |
| parse_mode | string | Optional formatting mode. Use 'html' for HTML tags (<b>, <i>, <code>, <pre>, <a href="...">), 'md' or 'markdown' for Markdown (**bold**, __italic__, `code`, ```pre```), or omit for plain text. Use 'rich'/'rich_markdown' for full server-side Markdown (tables, #headings, $formulas$, footnotes, collapsible sections) or 'rich_html' for full HTML — rich modes REQUIRE Telegram Premium on the account: without it nothing is sent and a structured {"sent": false, "reason": "telegram_premium_required"} result tells you to reformat and retry with 'md'/'html'. Premium is re-checked on every call (it can expire or be bought at any time). |
| reply_to | integer | Optional id of a message in the same chat to reply to. To post in a forum topic, pass the topic id (from list_topics). |
| silent | boolean | Send without a notification sound (default False). |
send_reactionSend a reaction to a message.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| big | boolean | Whether to show a big animation for the reaction (default: False) |
| chat_id * | any | The chat ID or username |
| emoji * | string | A standard emoji (e.g., "👍") or custom:<document_id> from get_message_reactions. |
| message_id * | integer | The message ID to react to |
send_scheduled_messageSchedule a message to be sent at a future time.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| message * | string | The message content to send. |
| parse_mode | string | Optional formatting mode. Use 'html' for HTML tags (<b>, <i>, <code>, <pre>, <a href="...">), 'md' or 'markdown' for Markdown (**bold**, __italic__, `code`, ```pre```), or 'plain' to send the text verbatim. If omitted, the client default applies (Markdown), as in earlier versions. Rich modes ('rich', 'rich_md', 'rich_markdown', 'rich_html') are not supported for scheduled messages. |
| schedule_date * | any | When to send the message. Either an ISO-8601 string (e.g. "2026-05-01T14:30:00" or "2026-05-01T14:30:00Z") or a Unix timestamp (int). Naive datetimes are treated as UTC. |
| silent | boolean | Send without a notification sound when the scheduled message is delivered. |
| topic_id | integer | Optional forum topic ID (from list_topics); 1 is General. The message is scheduled in that topic in a forum-enabled community/supergroup. |
send_stickerSend a sticker to a chat. File must be a valid .webp sticker file.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| file_path * | string | Absolute or relative path under allowed roots to the .webp sticker file. |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics). Sends into that topic in a forum-enabled community/supergroup. Also works as reply_to for a message. |
send_typingShow the "typing..." indicator in a chat for a number of seconds, then clear it.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The ID or username of the chat. |
| seconds | number | How long to show the indicator, 0.5 to 45 (default 5). |
| topic_id | integer | Forum topic ID, so the indicator shows inside that topic only. |
send_voiceSend a voice message to a chat. File must be an OGG/OPUS voice note.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| file_path * | string | Absolute or relative path under allowed roots to the OGG/OPUS file. |
| silent | boolean | Send without a notification sound (default False). |
| topic_id | integer | Optional forum topic ID (from list_topics). Sends into that topic in a forum-enabled community/supergroup. Also works as reply_to for a message. |
set_bot_commandsSet bot commands for a bot you own.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| bot_username * | string | The username of the bot to set commands for. |
| commands * | array | List of command dictionaries with 'command' and 'description' keys. |
set_contact_aliasRemember what the user calls someone, so any tool taking a chat_id understands it.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| alias * | string | The free-text reference to remember, e.g. "андрей бекендер" or "бекендер". |
| chat_id * | string | Chat ID, username (@user), or phone of the target. |
| replace | boolean | Required to repoint an alias that already points at someone else — the guard exists because a wrong mapping sends messages to the wrong person. |
set_default_chat_permissionsSet default member permissions for a group, supergroup, or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| change_info | boolean | allow members to change group info (title, photo, description) |
| chat_id * | any | ID or username of the chat. |
| embed_links | boolean | allow link previews |
| invite_users | boolean | allow members to invite others |
| pin_messages | boolean | allow members to pin messages |
| send_games | boolean | allow sending games |
| send_gifs | boolean | allow sending GIFs |
| send_inline | boolean | allow using inline bots |
| send_media | boolean | allow sending media (photos, videos, docs, audio) |
| send_messages | boolean | allow sending text messages |
| send_polls | boolean | allow sending polls |
| send_stickers | boolean | allow sending stickers |
| until_date | integer | restriction expiry as Unix timestamp, 0 = permanent (default) |
set_default_send_asSave which identity this account posts as in a supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Supergroup ID or username. |
| send_as * | any | "me" for your own account, or the ID or username of an allowed sender (for example a channel you own) returned by get_send_as. |
set_privacy_settingsAdd per-user exceptions to a privacy setting (last seen, phone, profile photo).| Parameter | Type | Description |
|---|---|---|
| account | string | |
| allow_users | array | List of user IDs or usernames to allow |
| disallow_users | array | List of user IDs or usernames to disallow |
| key * | string | The privacy setting to modify ('status' for last seen, 'phone', 'profile_photo') |
set_profile_photoSet a new profile photo.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| file_path * | string |
subscribe_public_channelSubscribe (join) to a public channel or supergroup by username or ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| channel * | any |
toggle_slow_modeEnable or disable slow mode for a supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | ID or username of the supergroup. |
| seconds | integer | interval between messages per user. 0 = disabled (default). |
transcribe_voiceTranscribe a voice message or video note (video circle) to text.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| engine | string | "groq", "telegram", "openai" or "whisper". Defaults to TELEGRAM_TRANSCRIBE_ENGINE (groq unless configured otherwise). |
| message_id * | integer | The message ID containing the voice/video-note media. |
unarchive_chatUnarchive a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
unban_userUnban a user from a group or channel.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | ID or username of the group/channel |
| user_id * | any | User ID or username to unban |
unblock_userUnblock a user by user ID.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| user_id * | any | The Telegram user ID or username to unblock. |
unmute_chatUnmute notifications for a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any |
unpin_all_messagesUnpin all pinned messages in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | Chat ID or username. |
unpin_messageUnpin a message in a chat.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | |
| message_id * | integer |
update_folderPatch an existing PRIVATE folder by ID, preserving every omitted field.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| expected_revision | string | |
| folder_id * | integer | |
| patch * | object |
update_profileUpdate your profile information (name, bio).| Parameter | Type | Description |
|---|---|---|
| about | string | |
| account | string | |
| first_name | string | |
| last_name | string |
upgrade_group_to_supergroupUpgrade a basic group to a supergroup.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The basic group ID (e.g. -123456789) or username. |
upload_fileUpload a local file to Telegram and return upload metadata.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| file_path * | string | Absolute or relative path under allowed roots. |
view_videoLook at a video, video note (video circle) or animation: still frames plus a| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id * | any | The chat ID or username. |
| end | number | Seconds from the beginning where to stop (default: the end). |
| max_frames | integer | How many frames at most (1-16, default 8). |
| message_id * | integer | The message with the video. |
| start | number | Seconds from the beginning where to start looking (default 0). |
| transcribe | boolean | Also transcribe the sound (default true). |
vote_pollVote in an existing Telegram poll, replacing the current vote if allowed.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name to use (required in multi-account mode). |
| chat_id * | any | The ID or username of the chat containing the poll. |
| message_id * | any | The message ID of the poll. |
| option_indices * | array | Non-empty list of zero-based answer indices, in the order shown by get_messages. Multiple indices require a multiple-choice poll. This submits a vote; it does not press an inline keyboard button. |
wait_for_eventsLong-poll for new messages, for integrators that follow chats (such as| Parameter | Type | Description |
|---|---|---|
| account | string | Only this account's events. Omitted: all accounts, and with several accounts each event names its `account`. Required with several accounts when chat_id is a username or alias. |
| after_seq | integer | Last sequence number already seen (0 at first); -1 to start from now without replaying the log. |
| boot | string | The `boot` value of the previous result. |
| chat_id | any | Only this chat (ID, username, or a saved contact alias). |
| limit | integer | Max events returned (default 100, at most 500). |
| timeout | number | Max seconds to wait (default 50); capped at 100 and 5 s below TELEGRAM_TOOL_TIMEOUT_SECONDS. Keep it under your MCP client's request timeout. |
wait_for_new_messageBlock until a new incoming private message from a non-bot user arrives, then| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id | any | Wait for THIS chat only (ID, username, or a saved contact alias). Pass it whenever you are waiting for one person's reply: without it any unrelated conversation wakes the call and you burn turns on messages you are not waiting for. Other chats keep accumulating and are still there when you ask for them. |
| timeout | number | Max seconds to block (default 50). |
wait_for_settled_messageEvent-driven, DEBOUNCED wait. Blocks until some private user chat has received| Parameter | Type | Description |
|---|---|---|
| account | string | |
| chat_id | any | Wait for THIS chat only (ID, username, or a saved contact alias). Use it when you are waiting for one person's answer — otherwise every other conversation wakes the call, wastes a turn, and tempts you into sleep-polling. Bursts from other chats stay pending and are returned by later unfiltered calls. |
| max_wait_ms | integer | Max total time to block before returning a timeout (default 50000). |
| settle_ms | integer | Quiet period after the LAST message before a burst is "settled" (default 6000 = 6s). Each new message in the chat resets this timer. |
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 8.9K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by poetry.lock and uv.lock.
- ✓No dynamic code executionScanned 41 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEtelegram_mcp/runner.py:278, telegram_mcp/runner.py:273, telegram_mcp/runner.py:275
- Starts other programs
- 1 calltelegram_mcp/video.py:94
- Outbound network calls
- 2 callstelegram_mcp/transcription.py:553, telegram_mcp/transcription.py:733
- Writes or deletes files
- 22 callstelegram_mcp/audit.py:56, telegram_mcp/media_links.py:93, telegram_mcp/media_links.py:95
- Lockfile
- poetry.lock and uv.lock
Pattern matches on the source text of 41 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 8.9K words, fetched 5 days ago. The original in the repository is authoritative.
Read full README