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
| Name | Type | Required | Rules |
|---|---|---|---|
| drop_pending_updates | boolean | No | when 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
| Status | Error | When |
|---|---|---|
| 429 | rate limit exceeded: slow down | more than 10 calls in 60 seconds |