Connect

Generate Telegram code

Changed on

Generate an access code (valid 15 minutes) for connecting a Telegram channel or group. Add the bot as admin, then send the code + @yourchannel to the bot. Poll PATCH /v1/connect/telegram to check status.

get/v1/connect/telegram

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/connect/telegram
  • Auth: HTTP bearer

Query parameters

profileIdstring required

The profile ID to connect the Telegram account to

Response

Access code generated

codestring

The access code to send to the Telegram bot

expiresAtstring date-time

When the code expires

expiresIninteger

Seconds until expiration

botUsernamestring

The Telegram bot username to message

instructionsstring[]

Step-by-step connection instructions

Example response

{
  "code": "ZRN-ABC123",
  "expiresIn": 900,
  "botUsername": "LateScheduleBot"
}

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status