Menu QaldyDocs

telegram

9 routes, from the API’s own OpenAPI document.

9 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
GET/​v1/​workspaces/​{ws}/​telegramTelegram for this workspace: the bot, your link, and for admins who is linked
POST/​v1/​workspaces/​{ws}/​telegramTurn Telegram on for a Telegram connection: sets the bot’s webhook (admins)
PATCH/​v1/​workspaces/​{ws}/​telegramChoose the alerts chat and whether the weekly digest goes there (admins)
DELETE/​v1/​workspaces/​{ws}/​telegramTurn Telegram off: removes the bot’s webhook; links are kept (admins)
POST/​v1/​workspaces/​{ws}/​telegram/​checkAsk Telegram how delivery to the webhook is going (admins)
DELETE/​v1/​workspaces/​{ws}/​telegram/​linkUnlink your own Telegram account
POST/​v1/​workspaces/​{ws}/​telegram/​link-codeA one-time code (10 minutes) to send to the bot to link your Telegram account
DELETE/​v1/​workspaces/​{ws}/​telegram/​people/​{userId}Unlink someone’s Telegram account from this workspace (admins)
POST/​v1/​workspaces/​{ws}/​telegram/​testSend a test message to your own linked chat

Reference

GET /v1/workspaces/{ws}/telegram

Telegram for this workspace: the bot, your link, and for admins who is linked.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: member; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/telegram

Turn Telegram on for a Telegram connection: sets the bot’s webhook (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
connectorIdstringyes1 to 128 characters
replaceExistingboolean

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

PATCH /v1/workspaces/{ws}/telegram

Choose the alerts chat and whether the weekly digest goes there (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
alertsChatstring or null
digestToChatboolean

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/workspaces/{ws}/telegram

Turn Telegram off: removes the bot’s webhook; links are kept (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/telegram/check

Ask Telegram how delivery to the webhook is going (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
urlSetbooleanyes
pendingintegeryesat least 0
lastErrorstring or nullyesup to 400 characters
lastErrorAtstring (date-time) or nullyes
reasonstring or nullyesup to 64 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Unlink your own Telegram account.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: member; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/telegram/link-code

A one-time code (10 minutes) to send to the bot to link your Telegram account.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: member; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
locale"en" · "ru" · "kk"

Response 200

FieldTypeRequiredNotes
codestringyes
expiresAtstring (date-time)yes
deepLinkstring or nullyesup to 200 characters
botUsernamestring or nullyesup to 64 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/workspaces/{ws}/telegram/people/{userId}

Unlink someone’s Telegram account from this workspace (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
userIdpathstringyes

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
readybooleanyes
notReady"keys_missing" · "pepper_missing" · "public_url_not_https" · null or nullyes
botobject or nullyes
bot.connectorIdstringyes1 to 128 characters
bot.connectorNamestringyesup to 128 characters
bot.usernamestring or nullyesup to 64 characters
bot.enabledbooleanyes
bot.webhook"pending" · "set" · "failed" · "removed"yes
bot.webhookErrorstring or nullyesup to 64 characters
bot.alertsChatobject or nullyes
bot.digestToChatbooleanyes
bot.updatedAtstring (date-time)yes
connectionsobject[]yesup to 20 items
connections[].idstringyes1 to 128 characters
connections[].displayNamestringyes1 to 128 characters
connections[].status"connected" · "expired" · "error" · "disconnected"yes
canManagebooleanyes
meobjectyes
me.linkedbooleanyes
me.telegramUsernamestring or nullyesup to 64 characters
me.linkedAtstring (date-time) or nullyes
me.codeExpiresAtstring (date-time) or nullyes
peopleobject[]yesup to 500 items
people[].userIdstringyes1 to 128 characters
people[].namestringyesup to 200 characters
people[].telegramUsernamestring or nullyesup to 64 characters
people[].linkedAtstring (date-time)yes
people[].lastSeenAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/telegram/test

Send a test message to your own linked chat.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: member; console only
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
sentbooleanyes
reasonstring or nullyesup to 64 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.