productivity
Telegram MCP, CLI, and Lua Integration for AI Agents
Telegram integration docs for AI agents: MCP gateway setup, Telegram CLI commands, Lua API reference, credentials, and function schemas.Telegram for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
telegram.telegram_send_message | Write write | 5 | Send a text message to a Telegram chat. Provide the chat_id and message text. The chat_id can be a numeric ID or @channelusername. Supports optional parse_mode (Markdown, MarkdownV2, HTML) and other formatting options. |
telegram.telegram_list_updates | Read read | 3 | Get incoming updates (messages, callback queries, inline queries, etc.) for the Telegram bot. Use offset to acknowledge previously received updates. Returns an array of update objects. |
telegram.telegram_get_me | Read read | 0 | Get information about the authenticated Telegram bot. Returns the bot ID, username, display name, and capability flags. |
telegram.telegram_list_chats | Read read | 1 | List recent chats the bot has interacted with. Since Telegram Bot API does not have a native list-chats endpoint, this fetches recent updates and extracts unique chats. Returns chat IDs, types, and titles. |
telegram.telegram_get_chat | Read read | 1 | Get information about a specific Telegram chat by its ID or @username. Returns chat type, title, description, member count, and other metadata. |
telegram.telegram_send_photo | Write write | 6 | Send a photo to a Telegram chat. Provide the chat_id and a photo URL or file_id. Supports optional caption with formatting and other options. |
telegram.telegram_get_current_user | Read read | 0 | Get the profile of the currently authenticated Telegram bot. Returns bot ID, username, display name, and capability flags. |