iflow-mcp_leshchenko1979_fast-mcp-telegram

v0.11.0
iflow-mcp_leshchenko1979_fast-mcp-telegram Checked 4 days ago Published 10 months ago

MCP server with Telegram search and messaging capabilities

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_messages_globally Search Messages Globally

Search messages across all Telegram chats (global search). FEATURES: - Multiple queries: "term1, term2, term3" - Date filtering: ISO format (min_date="2024-01-01") - Chat type filter: "private", "group", "channel" (comma-separated for multiple) - Public filter: True=with username, False=without username (never applies to private chats) EXAMPLES: search_messages_globally(query="deadline", limit=20) # Global search search_messages_globally(query="project, launch", limit=30) # Multi-term search search_messages_globally(query="urgent", chat_type="private") # Private chats only search_messages…

ParameterTypeDescription
query *stringSearch terms (comma-separated). Required for global search.
auto_expand_batchesintegerExtra result batches for filtered searches
chat_typeFilter by chat type ("private"/"group"/"channel", comma-separated for multiple)
include_total_countbooleanInclude total matching messages count (ignored in global mode)
limitintegerMax results (recommended: ≤50)
max_dateMax date filter (ISO format: "2024-12-31")
min_dateMin date filter (ISO format: "2024-01-01")
publicFilter by public discoverability (True=with username, False=without username)

search_messages_in_chat Search Messages In Chat

Search messages within a specific Telegram chat. FEATURES: - Multiple queries: "term1, term2, term3" - Date filtering: ISO format (min_date="2024-01-01") - Total count support for per-chat searches - No query = returns latest messages from the chat EXAMPLES: search_messages_in_chat(chat_id="me", limit=10) # Saved Messages search_messages_in_chat(chat_id="-1001234567890", query="launch") # Specific chat search_messages_in_chat(chat_id="telegram", query="update, news") # Multi-term search

ParameterTypeDescription
chat_id *stringTarget chat ID ('me' for Saved Messages) or specific chat
auto_expand_batchesintegerExtra result batches for filtered searches
include_total_countbooleanInclude total matching messages count (per-chat only)
limitintegerMax results (recommended: ≤50)
max_dateMax date filter (ISO format: "2024-12-31")
min_dateMin date filter (ISO format: "2024-01-01")
queryOptional search terms (comma-separated). If omitted, returns latest messages.

send_message Send Message

Send new message in Telegram chat, optionally with files. FORMATTING: - parse_mode="auto" (default): Automatically detects Markdown or HTML based on content - parse_mode="markdown": *bold*, _italic_, [link](url), `code` - parse_mode="html": <b>bold</b>, <i>italic</i>, <a href="url">link</a>, <code>code</code> FILE SENDING: - files: Single file or list of files (URLs or local paths) - URLs work in all modes (http:// or https://) - Local file paths only work in stdio mode - Supports images, videos, documents, audio, and other file types - When files are provided, message becomes the caption E…

ParameterTypeDescription
chat_id *stringTarget chat ID ('me' for Saved Messages, numeric ID, or username)
message *stringMessage text to send (becomes caption when files are provided)
filesSingle file or list of files to send (URLs or local paths, optional)
parse_modeText formatting ("markdown", "html", "auto", or None). Default: "auto"
reply_to_msg_idReply to specific message ID (optional)

edit_message Edit Message

Edit existing message in Telegram chat. FORMATTING: - parse_mode="auto" (default): Automatically detects Markdown or HTML based on content - parse_mode="markdown": *bold*, _italic_, [link](url), `code` - parse_mode="html": <b>bold</b>, <i>italic</i>, <a href="url">link</a>, <code>code</code> EXAMPLES: edit_message(chat_id="me", message_id=12345, message="Updated text") # Edit Saved Messages edit_message(chat_id="-1001234567890", message_id=67890, message="*Updated* message") # Edit with formatting

ParameterTypeDescription
chat_id *stringTarget chat ID ('me' for Saved Messages, numeric ID, or username)
message *stringNew message text
message_id *integerMessage ID to edit (required)
parse_modeText formatting ("markdown", "html", "auto", or None). Default: "auto"

read_messages Read Messages

Read specific messages by their IDs from a Telegram chat. SUPPORTED CHAT FORMATS: - 'me': Saved Messages - Numeric ID: User/chat ID (e.g., 133526395) - Username: @channel_name or @username - Channel ID: -100xxxxxxxxx USAGE: - First use search_messages_globally() or search_messages_in_chat() to find message IDs - Then read specific messages using those IDs - Returns full message content with metadata EXAMPLES: read_messages(chat_id="me", message_ids=[680204, 680205]) # Saved Messages read_messages(chat_id="-1001234567890", message_ids=[123, 124]) # Channel

ParameterTypeDescription
chat_id *stringTarget chat identifier (use 'me' for Saved Messages)
message_ids *arrayList of message IDs to retrieve (from search results)

find_chats Find Chats

Find Telegram chats (users, groups, channels) by name, username, or phone number. SEARCH SCOPE: - Your saved contacts - Global Telegram users - Public channels and groups QUERY TYPES: - Name: "John Doe" or "Иванов" - Username: "@username" (without @) - Phone: "+1234567890" MULTI-TERM QUERIES: - Comma-separated terms are supported: "john, @telegram, +123" - Each term is searched independently, then results are merged and deduplicated by chat_id - The final list is truncated to the requested limit PUBLIC FILTER: - Public filter never applies to private chats (direct messages with users…

ParameterTypeDescription
query *stringSearch term(s). Supports comma-separated multi-queries.
chat_typeOptional filter ("private"|"group"|"channel", comma-separated for multiple)
limitintegerMax results (default: 20, recommended: ≤50)
publicOptional filter for public discoverability (True=with username, False=without username). Ignored for private chats.

get_chat_info Get Chat Info

Get detailed profile information for a specific Telegram user or chat. USE CASES: - Get full user profile after finding chat_id - Retrieve contact details, bio, status and subscribers count - Check if user is online/bot/channel SUPPORTED FORMATS: - Numeric user ID: 133526395 - Username: "telegram" (without @) - Channel ID: -100xxxxxxxxx EXAMPLES: get_chat_info("133526395") # User by ID get_chat_info("telegram") # User by username get_chat_info("-1001234567890") # Channel by ID

ParameterTypeDescription
chat_id *stringTarget chat/user identifier (numeric ID, username, or channel ID)

send_message_to_phone Send Message To Phone

Send message to phone number, auto-managing Telegram contacts, optionally with files. FEATURES: - Auto-creates contact if phone not in contacts - Sends message immediately after contact creation - Optional contact cleanup after sending - Full message formatting support - File sending support (URLs or local paths) CONTACT MANAGEMENT: - Checks existing contacts first - Creates temporary contact only if needed - Removes temporary contact if remove_if_new=True FILE SENDING: - files: Single file or list of files (URLs or local paths) - URLs work in all modes (http:// or https://) - Local file pa…

ParameterTypeDescription
message *stringMessage text to send (becomes caption when files are provided)
phone_number *stringTarget phone number with country code (e.g., "+1234567890")
filesSingle file or list of files to send (URLs or local paths, optional)
first_namestringContact first name (for new contacts only)
last_namestringContact last name (for new contacts only)
parse_modeText formatting ("markdown", "html", "auto", or None). Default: "auto"
remove_if_newbooleanRemove contact after sending if newly created
reply_to_msg_idReply to specific message ID

invoke_mtproto Invoke Mtproto

Execute low-level Telegram MTProto API methods directly. USE CASES: - Access advanced Telegram API features - Custom queries not covered by standard tools - Administrative operations METHOD FORMAT: - Full class name: "messages.GetHistory", "users.GetFullUser" - Telegram API method names with proper casing (case-insensitive) - Methods are automatically normalized to correct format PARAMETERS: - JSON string with method parameters - Parameter names match Telegram API documentation - Supports complex nested objects ENTITY RESOLUTION: - Set resolve=true to automatically resolve entity-like para…

ParameterTypeDescription
method_full_name *stringTelegram API method name (e.g., "messages.GetHistory")
params_json *stringMethod parameters as JSON string
allow_dangerousbooleanAllow dangerous methods like delete operations (default: False)
resolvebooleanAutomatically resolve entity-like parameters (default: True)