API by router
Telegram channel
GET
HTTPBearerheader
AuthorizationBearer <token>instance_id*Instance IdX-Api-Key?string|nullSuccessful Response
application/json- response
Current Telegram channel status.
bot_username?string|nullhas_bot_token*Has Bot Tokentelegram_enabled*Telegram Enabledwebhook_url?string|nullcurl -X GET 'https://example.com/v1/instances/string/channels/telegram'Example Response
{ "bot_username": "string", "has_bot_token": true, "telegram_enabled": true, "webhook_url": "string"}POST
HTTPBearerheader
AuthorizationBearer <token>instance_id*Instance IdX-Api-Key?string|nullapplication/json- body
Request to configure Telegram channel for an instance.
bot_token*Bot TokenLength
30 <= length <= 100Successful Response
application/json- response
Response after configuring Telegram channel.
instance_id*Instance Idmessage*Messagetelegram_enabled*Telegram Enabledwebhook_registered?Webhook RegisteredDefault
falsewebhook_url?string|nullcurl -X POST 'https://example.com/v1/instances/string/channels/telegram' \ -H 'Content-Type: application/json' \ -d '{ "bot_token": "stringstringstringstringstring"}'Example Response
{ "instance_id": "string", "message": "string", "telegram_enabled": true, "webhook_registered": false, "webhook_url": "string"}DELETE
HTTPBearerheader
AuthorizationBearer <token>instance_id*Instance IdX-Api-Key?string|nullSuccessful Response
application/json- response
Response after configuring Telegram channel.
instance_id*Instance Idmessage*Messagetelegram_enabled*Telegram Enabledwebhook_registered?Webhook RegisteredDefault
falsewebhook_url?string|nullcurl -X DELETE 'https://example.com/v1/instances/string/channels/telegram'Example Response
{ "instance_id": "string", "message": "string", "telegram_enabled": true, "webhook_registered": false, "webhook_url": "string"}