Getting updates

deleteWebhook()

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

parameters

parametertyperequireddescription
drop_pending_updatesbooleanoptionalPass 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.

bot.ts
import type { DeleteWebhookParams } from "@yaebal/types";

await bot.api.call<boolean>("deleteWebhook", {} satisfies DeleteWebhookParams);