Skip to content
Maua.Culturewire

Telegram

Telegram bot: send messages and read received ones

CommunicationCatalog2 tools · 0 triggers

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

    1. In Telegram open @BotFather, send /newbot and choose the name and username of the bot (it must end in “bot”).
    2. Copy the token it returns.
    3. 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.

    Get credentials (opens in a new tab)

Tools (2)

  • Telegram API requestTELEGRAM_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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 messageTELEGRAM_SEND_MESSAGE

    Send a text message as the bot to a private chat, group or channel.

    Required scopes

    No scopes required

    Input

    Send a message input
    NameTypeDescription
    chatrequiredstring | numberNumeric chat_id (shown in getUpdates) or @username of the channel
    textrequiredstring
    formatstringparse_mode (without it, plain text)One of: HTML, MarkdownV2
    silentbooleanSend without a notification soundDefault: false