Overview
Add Telegram Bot to any ModuleX agent or workflow. Telegram Bot API integration via direct HTTP againstapi.telegram.org/bot<token>/<method>. Covers messaging, chat/member management, and a long-poll updates feed.
Authentication
Bot Token Authentication
Authenticate using your Telegram Bot token from @BotFatherRequired Credentials
Available Actions
send_text_message — Send a text message to a Telegram chat. Supports Markdown, MarkdownV2, and HTML formatting.
send_text_message — Send a text message to a Telegram chat. Supports Markdown, MarkdownV2, and HTML formatting.
Parameters
false)Response
send_photo — Send a photo to a Telegram chat. Photos can be sent by URL or file_id.
send_photo — Send a photo to a Telegram chat. Photos can be sent by URL or file_id.
Parameters
false)Response
send_document — Send a document or file to a Telegram chat.
send_document — Send a document or file to a Telegram chat.
Parameters
false)Response
send_video — Send a video to a Telegram chat.
send_video — Send a video to a Telegram chat.
Parameters
false)Response
send_audio — Send an audio file to a Telegram chat.
send_audio — Send an audio file to a Telegram chat.
Parameters
false)Response
forward_message — Forward a message from one chat to another.
forward_message — Forward a message from one chat to another.
edit_text_message — Edit a text message previously sent by the bot.
edit_text_message — Edit a text message previously sent by the bot.
delete_message — Delete a message from a chat (messages older than 48 hours cannot be deleted).
delete_message — Delete a message from a chat (messages older than 48 hours cannot be deleted).
pin_message — Pin a message in a chat. Bot must be an administrator with can_pin_messages permission.
pin_message — Pin a message in a chat. Bot must be an administrator with can_pin_messages permission.
get_chat_member_count — Get the number of members in a chat.
get_chat_member_count — Get the number of members in a chat.
get_chat_administrators — Get a list of administrators in a chat with their permissions.
get_chat_administrators — Get a list of administrators in a chat with their permissions.
get_updates — Get incoming updates via long polling: messages, edited messages, channel posts, and other events.
get_updates — Get incoming updates via long polling: messages, edited messages, channel posts, and other events.
ban_chat_member — Ban a user from a group, supergroup, or channel. Bot must be an administrator.
ban_chat_member — Ban a user from a group, supergroup, or channel. Bot must be an administrator.
unban_chat_member — Unban a previously banned user.
unban_chat_member — Unban a previously banned user.
create_chat_invite_link — Create an additional invite link for a chat. Bot must have can_invite_users permission.
create_chat_invite_link — Create an additional invite link for a chat. Bot must have can_invite_users permission.
get_chat — Get up-to-date information about a chat including title, description, photo, and settings.
get_chat — Get up-to-date information about a chat including title, description, photo, and settings.
get_me — Get basic information about the bot — its username, name, and capabilities.
get_me — Get basic information about the bot — its username, name, and capabilities.
Response
Limits & Quotas
- Media (
send_photo/send_document/send_video/send_audio) accepts a file_id or HTTPS URL only — local file uploads via multipart aren’t supported here (the legacy implementation didn’t actually upload bytes either, despite the docstring claim — we preserve the simpler behavior). - Failures (Telegram
ok: false, HTTP errors, exceptions) all surface assuccess=False+errorcarrying the upstreamdescriptionfield where available. delete_messageonly works for messages younger than 48 hours (Telegram constraint).