iflow-mcp_leshchenko1979_fast-mcp-telegram
v0.11.0MCP 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms (comma-separated). Required for global search. |
auto_expand_batches | integer | Extra result batches for filtered searches |
chat_type | Filter by chat type ("private"/"group"/"channel", comma-separated for multiple) | |
include_total_count | boolean | Include total matching messages count (ignored in global mode) |
limit | integer | Max results (recommended: ≤50) |
max_date | Max date filter (ISO format: "2024-12-31") | |
min_date | Min date filter (ISO format: "2024-01-01") | |
public | Filter 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
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | Target chat ID ('me' for Saved Messages) or specific chat |
auto_expand_batches | integer | Extra result batches for filtered searches |
include_total_count | boolean | Include total matching messages count (per-chat only) |
limit | integer | Max results (recommended: ≤50) |
max_date | Max date filter (ISO format: "2024-12-31") | |
min_date | Min date filter (ISO format: "2024-01-01") | |
query | Optional 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…
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | Target chat ID ('me' for Saved Messages, numeric ID, or username) |
message * | string | Message text to send (becomes caption when files are provided) |
files | Single file or list of files to send (URLs or local paths, optional) | |
parse_mode | Text formatting ("markdown", "html", "auto", or None). Default: "auto" | |
reply_to_msg_id | Reply 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
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | Target chat ID ('me' for Saved Messages, numeric ID, or username) |
message * | string | New message text |
message_id * | integer | Message ID to edit (required) |
parse_mode | Text 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
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | Target chat identifier (use 'me' for Saved Messages) |
message_ids * | array | List 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Search term(s). Supports comma-separated multi-queries. |
chat_type | Optional filter ("private"|"group"|"channel", comma-separated for multiple) | |
limit | integer | Max results (default: 20, recommended: ≤50) |
public | Optional 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
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | Target 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…
| Parameter | Type | Description |
|---|---|---|
message * | string | Message text to send (becomes caption when files are provided) |
phone_number * | string | Target phone number with country code (e.g., "+1234567890") |
files | Single file or list of files to send (URLs or local paths, optional) | |
first_name | string | Contact first name (for new contacts only) |
last_name | string | Contact last name (for new contacts only) |
parse_mode | Text formatting ("markdown", "html", "auto", or None). Default: "auto" | |
remove_if_new | boolean | Remove contact after sending if newly created |
reply_to_msg_id | Reply 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…
| Parameter | Type | Description |
|---|---|---|
method_full_name * | string | Telegram API method name (e.g., "messages.GetHistory") |
params_json * | string | Method parameters as JSON string |
allow_dangerous | boolean | Allow dangerous methods like delete operations (default: False) |
resolve | boolean | Automatically resolve entity-like parameters (default: True) |