Connect Telegram
POST
Connect a Telegram bot to a sender. Provide the bot token from @BotFather; Zavu validates it, registers the webhook, and routes the sender's Telegram messages through it.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
senderIdstringrequired
Body
application/json
botTokenstringrequiredBot token from @BotFather.
Responses
200Telegram connected.
telegramobjectrequired3 properties
connectedbooleanrequiredbotUsernamestringbotIdstring
400Invalid bot token or request.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Sender not found.
codestringrequiredmessagestringrequireddetailsobject