Skip to content
Docs

Telegram

Telegram is cataloged under Communication & messaging. Publicus ships this entry, so you connect the service by picking it from the catalog rather than describing its API yourself. The vendor’s own documentation is at https://core.telegram.org/bots/api.

Auth system Type
Telegram bot token (BotFather) Custom

Each linked auth system has a guide with the steps for getting the credential.

HTTPS interface for Telegram bots: send and receive messages, manage webhooks, and download files. Every response is a JSON envelope with a Boolean ‘ok’, a ‘result’ on success, and ‘description’ + ‘error_code’ on failure; flood-control errors carry the wait time as a ‘retry_after’ field (seconds) inside the ResponseParameters object of the response body, not as an HTTP header.

Capability What it covers
send_messages Send text messages (sendMessage) and other outgoing content on behalf of the bot. Telegram’s Bots FAQ (https://core.telegram.org/bots/faq) documents flood limits: roughly one message per second per chat, no more than 20 messages per minute in a group, and about 30 messages per second for bulk broadcasts (higher only with paid broadcasts); exceeding them yields 429 errors.
receive_updates Receive incoming updates via getUpdates long polling. Mutually exclusive with webhook delivery; undelivered updates are kept on Telegram’s servers for at most 24 hours.
manage_webhook Register or remove an HTTPS webhook URL for update delivery (setWebhook/deleteWebhook). Telegram POSTs a JSON-serialized Update per event; the optional secret_token is echoed back in the ‘X-Telegram-Bot-Api-Secret-Token’ header. Supported ports: 443, 80, 88, 8443.
download_files Fetch file metadata with getFile, then download via https://api.telegram.org/file/bot<token>/<file_path>. Bots can download files up to 20 MB; the download link is guaranteed valid for at least one hour.