channels
channels
telegram_bot
Disconnect Telegram Bot Account
Disconnect: unregister the webhook (deleteWebhook) and mark the account inactive.
Authorization: the account is OWNER-scoped. Without this any authenticated user could deactivate another tenant's bot (and kill its webhook) by id — the same privilege-escalation guard the canonical disconnect_account uses (accounts.py owner_only=True). The final UPDATE is additionally scoped by app_user_id so it can only ever touch the caller's own row.
post/api/channels/telegram_bot/accounts/disconnect
Request
- Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
- URL: https://api.dialogbrain.com/api/channels/telegram_bot/accounts/disconnect
- Auth: none declared
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 6 revisions of this API.