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

deleteWebhook is directly typed on Api — call it straight off bot.api.

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

await bot.api.deleteWebhook({} satisfies DeleteWebhookParams);