deleteWebhook method

Future<bool> deleteWebhook({
  1. bool? drop_pending_updates,
})
inherited

Use this method to remove webhook integration if you decide to switch back to getUpdates

Returns True on success. Requires no parameters.

https://core.telegram.org/bots/api#deletewebhook

Implementation

Future<bool> deleteWebhook({bool? drop_pending_updates}) async {
  var requestUrl = _apiUri('deleteWebhook');
  var body = <String, dynamic>{'drop_pending_updates': drop_pending_updates};
  return await HttpClient.httpPost(requestUrl, body: body);
}