Bot

Set webhook

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

post/bot{token}/setWebhook

Path parameters

tokenstring required

Required bot token included in the URL path.

Headers

authorizationstring

Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.

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