Whether the chat for a Telegram connect code is connected yet
Whether the chat for a Telegram connect code is connected yet (channels:read)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
GET
header
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
code*stringOK
application/json- response
A code to connect a Telegram chat through the server's bot, and what became of it
code*stringcommand*stringWhat to send in the chat: /connect@bot CODE (addressed to the server's bot, so other bots leave it alone)
bot*stringThe bot to add (@username)
expires_at*stringFormat
date-timestatus*stringwaiting: no /connect yet, or the last one failed (error says why)
Value in
"waiting""connected""expired"channel_id?stringerror?stringcurl -X GET 'https://staqly.example.com/v1/channels/telegram/connect/string'Example Response
{ "code": "string", "command": "string", "bot": "string", "expires_at": "2019-08-24T14:15:22Z", "status": "waiting", "channel_id": "string", "error": "string"}