Skip to content

Connect Telegram

View .md
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

  • Authorizationheaderrequired

    Bearer YOUR_API_KEY. Create a key in the dashboard.

Path parameters

  • senderIdstringrequired

Body

application/json

  • botTokenstringrequired

    Bot token from @BotFather.

Responses

200Telegram connected.
  • telegramobjectrequired
    3 properties
    • connectedbooleanrequired
    • botUsernamestring
    • botIdstring
400Invalid bot token or request.
  • codestringrequired
  • messagestringrequired
  • detailsobject
401Unauthorized.
  • codestringrequired
  • messagestringrequired
  • detailsobject
404Sender not found.
  • codestringrequired
  • messagestringrequired
  • detailsobject