Bot

Set webhook

Enables or replaces webhook delivery for the same pending-update queue.

post/bot/setWebhook

Headers

authorizationstring required

Required bot token using the Bearer scheme.

Request body

urlstring required
secret_tokenstring
message_trigger'all' | 'mentions'
allowed_updatesBotUpdateKey[]
drop_pending_updatesboolean

Response

BotTrueSuccess

oktrue required

Always true for a successful request.

resulttrue required

Method-specific response payload.

Changes