Telegram
Telegram bot: send messages and read received ones
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Bot tokenSecretRequiredIdentifier
Where to find them
- In Telegram open @BotFather, send /newbot and choose the name and username of the bot (it must end in “bot”).
- Copy the token it returns.
- For the bot to message someone, that person must have talked to it first; in groups, add it (by default it only sees commands, mentions and replies: change this with /setprivacy) and in channels, make it an administrator.
Tools (2)
Telegram API request
TELEGRAM_SEND_REQUESTAuthenticated call to the Telegram API (https://api.telegram.org/bot{token}). Any endpoint of the API is allowed. Examples: GET /getUpdates (received messages and their chat.id; it does not work if a webhook is active), POST /sendMessage {"chat_id": 123, "text": "…", "parse_mode": "HTML"}, POST /sendPhoto {"chat_id": 123, "photo": "https://…"}, GET /getChat?chat_id=@channel. Responses carry {ok, result}; errors carry {ok: false, description}.
Required scopes
No scopes required
Input
Telegram API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Send a message
TELEGRAM_SEND_MESSAGESend a text message as the bot to a private chat, group or channel.
Required scopes
No scopes required
Input
Send a message input Name Type Description chatrequiredstring | numberNumeric chat_id (shown in getUpdates) or @username of the channel textrequiredstringformatstringparse_mode (without it, plain text)One of: HTML,MarkdownV2silentbooleanSend without a notification soundDefault: false

