Skip to content

deleteWebhook

Delete the currently set webhook.

Request

POST /:token/deletewebhook

Parameters

ParameterTypeRequiredDescription
drop_pending_updatesBooleanNoWhether to drop all pending updates

Response

Returns Boolean true on success.

json
{
  "ok": true,
  "result": true
}

Error Codes

CodeDescription
400Bad request parameters
401Invalid token
403Bot does not have permission to perform this action