
Telegram TelegramSend
CertifiedSend a Telegram chat message
Telegram TelegramSend
Send a Telegram chat message
Posts a Telegram sendMessage request using a Bot token and chat ID. The payload is the message text (plain text or HTML/MarkdownV2 markup); default parse mode sends plain text. Supports HTTP client overrides and an optional API endpoint override for local testing.
type: io.kestra.plugin.telegram.TelegramSendExamples
Send a Telegram message on a failed flow execution.
id: unreliable_flow
namespace: company.team
tasks:
- id: fail
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
commands:
- exit 1
errors:
- id: alert_on_failure
type: io.kestra.plugin.telegram.TelegramSend
token: "{{ secret('TELEGRAM_TOKEN') }}" # format: 6090305634:xyz
channel: "2072728690"
parseMode: HTML
payload: "<b>Telegram Alert</b>"
Properties
channel *Requiredstring
Chat ID or channel ID
Target chat identifier for the user or channel; supports expressions.
token *Requiredstring
Bot access token
Telegram Bot API token; store as a secret and avoid hardcoding.
endpointOverride string
Custom Telegram API base URL
Override the Telegram API endpoint for local testing; defaults to https://api.telegram.org.
options
Configure Telegram HTTP client
Optional HTTP client overrides for Telegram calls. Leave unset to use defaults: 10s read timeout, 5m read idle timeout, 10 MB max response, UTF-8 charset.
io.kestra.plugin.telegram.AbstractTelegramConnection-RequestOptions
Maximum time to establish the connection before failing; unset uses the client default.
PT0SIdle timeout for pooled connections; defaults to 0s.
UTF-8Request charset; defaults to UTF-8.
java.nio.charset.Charset
HTTP headers
HTTP headers to include in the request
10485760Maximum response size; defaults to 10 MB.
PT5MIdle time allowed while reading before closing the connection; defaults to 5m.
PT10SMaximum read duration before failing; defaults to 10s.
parseMode string
HTMLMARKDOWNV2Telegram Bot parse-Mode
Optional text formatting mode. Use the case-sensitive enum names HTML or MARKDOWNV2 (values sent to Telegram are HTML and MarkdownV2). Default sends plain text.
payload string
Message payload
Message text sent as Telegram sendMessage text (plain text, or HTML/MarkdownV2 markup when parseMode is set). Do not wrap the value in a JSON object.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.