Telegram Bot API

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.

post/deleteWebhook

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/deleteWebhook
  • Auth: none declared

Request body

drop_pending_updatesboolean

Pass True to drop all pending updates

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.