deleteWebhook
Delete the currently set webhook.
Request
POST /:token/deletewebhook
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| drop_pending_updates | Boolean | No | Whether to drop all pending updates |
Response
Returns Boolean true on success.
json
{
"ok": true,
"result": true
}Error Codes
| Code | Description |
|---|---|
| 400 | Bad request parameters |
| 401 | Invalid token |
| 403 | Bot does not have permission to perform this action |
