POST /webhooks/telegram

Telegram Bot API updates (message, channel_post, my_chat_member), registered with npm run telegram:set-webhook. X-Telegram-Bot-Api-Secret-Token must equal TELEGRAM_WEBHOOK_SECRET (compared in constant time). /connect <code> in a channel or group (or a forwarded channel post) links the chat; the bot being removed or losing the right to post flags the account needs_reconnect (account.disconnected). Always 200 for authentic updates, including ignored ones

POST
/webhooks/telegram

Response Body

{ok}

application/json
  1. response
ok?boolean
Example Request
curl -X POST 'https://example.com/api/webhooks/telegram'
Example Response
{  "ok": true}