Skip to content

Generate Telegram code

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

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.

Parameters

  • profileId (query, string) required — The profile ID to connect the Telegram account to

Responses

200 — Access code generated

  • code (string) — The access code to send to the Telegram bot
  • expiresAt (string) — When the code expires
  • expiresIn (integer) — Seconds until expiration
  • botUsername (string) — The Telegram bot username to message
  • instructions (array) — Step-by-step connection instructions

400 — Profile ID required or invalid format

401

403 — No access to this profile

404 — Profile not found

500 — Internal error