Skip to main content
Telegram Bot logo

Overview

Add Telegram Bot to any ModuleX agent or workflow. Telegram Bot API integration via direct HTTP against api.telegram.org/bot<token>/<method>. Covers messaging, chat/member management, and a long-poll updates feed.
Categories: Communication · Communication & Collaboration · Automation · Development · Social Media · Messaging · Auth: Bot Token · Actions: 17

Authentication

Bot Token Authentication

Authenticate using your Telegram Bot token from @BotFather

Required Credentials

Available Actions

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Text of the message (1-4096 characters)
string
Mode for parsing entities (‘Markdown’, ‘MarkdownV2’, or ‘HTML’)
boolean
Send silently with no sound (Default: false)
integer
ID of the message to reply to

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Photo to send (file_id or HTTP URL)
string
Photo caption (0-1024 characters)
string
Mode for parsing entities (‘Markdown’, ‘MarkdownV2’, or ‘HTML’)
boolean
Send silently with no sound (Default: false)
integer
ID of the message to reply to

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Document to send (file_id or HTTP URL)
string
Document caption (0-1024 characters)
string
Mode for parsing entities (‘Markdown’, ‘MarkdownV2’, or ‘HTML’)
boolean
Send silently with no sound (Default: false)
integer
ID of the message to reply to

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Video to send (file_id or HTTP URL)
string
Video caption (0-1024 characters)
integer
Duration of sent video in seconds
string
Mode for parsing entities (‘Markdown’, ‘MarkdownV2’, or ‘HTML’)
boolean
Send silently with no sound (Default: false)
integer
ID of the message to reply to

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Audio to send (file_id or HTTP URL)
string
Audio caption (0-1024 characters)
integer
Duration of the audio in seconds
string
Performer of the audio
string
Track name
boolean
Send silently (Default: false)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
string
required
Chat where the original message was sent
integer
required
Message identifier in from_chat_id
boolean
Send silently (Default: false)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
integer
required
Identifier of the message to edit
string
required
New text of the message (1-4096 characters)
string
Mode for parsing entities

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
integer
required
Identifier of the message to delete

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
integer
required
Identifier of the message to pin
boolean
Pin silently (Default: false)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel

Response

Parameters

integer
Identifier of the first update to be returned
integer
Number of updates to retrieve (1-100) (Default: 100)
integer
Timeout in seconds for long polling (Default: 0)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
integer
required
Unique identifier of the target user
integer
Date when the user will be unbanned (Unix time)
boolean
Delete all messages from the chat for the user (Default: false)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel
integer
required
Unique identifier of the target user
boolean
Do nothing if the user is not banned (Default: true)

Response

Parameters

string
required
Unique identifier for the target chat or @username of the target channel

Response

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 as success=False + error carrying the upstream description field where available.
  • delete_message only works for messages younger than 48 hours (Telegram constraint).

Pinterest

Slack

WhatsApp