Use this method to remove webhook integration if you decide to switch back to [getUpdates]
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.
POST
/deleteWebhook
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/deleteWebhook \
-H "Content-Type: application/json" \
-d '{"drop_pending_updates":true}'
Request example
{
"drop_pending_updates": true
}
Request examples
{
"drop_pending_updates": true
}
Response examples (200)
{
"ok": true,
"result": true
}
Response examples (200)
{
"ok": true,
"result": true
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}