Bot API · Bot token

deleteWebhook

Remove the webhook and fall back to polling

Deletes the webhook row for this bot+env. Past update rows stay as history.

Request

curl https://api.sprintelex.com/deleteWebhook \
  -H "Authorization: Bearer <bot-token>"

Parameters

NameTypeRequiredRules
drop_pending_updatesbooleanNowhen true, updates not yet delivered via webhook are marked delivered_webhook=true

Response

{ ok: true, result: true }

Rate limit: 10 calls per 60-second window per bot+env

Errors

StatusErrorWhen
429rate limit exceeded: slow downmore than 10 calls in 60 seconds