deleteWebhook()
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
drop_pending_updates | boolean | optional | Pass True to drop all pending updates |
returns
boolean
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { DeleteWebhookParams } from "@yaebal/types";
await bot.api.call<boolean>("deleteWebhook", {} satisfies DeleteWebhookParams);official Bot API docs: https://core.telegram.org/bots/api/#deletewebhook