connect
Check Telegram status
Poll this endpoint to check if a Telegram access code has been used to connect a channel/group. Recommended polling interval: 3 seconds. Status values: pending (waiting for user), connected (channel/group linked), expired (generate a new code).
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
codestring
The access code to check status for
Response Body
application/json
application/json
curl -X PATCH "https://getlate.dev/api/v1/connect/telegram?code=LATE-ABC123"{
"status": "pending",
"expiresAt": "2024-01-15T12:30:00.000Z",
"expiresIn": 542
}{
"error": "Unauthorized"
}Empty
Empty
Connect Telegram directly POST
Connect a Telegram channel/group directly using the chat ID. Alternative to the access code flow. The bot must already be an admin in the channel/group.
List Snapchat profiles GET
For headless flows. Returns Snapchat Public Profiles the user can post to. Use X-Connect-Token from the redirect URL.