Getting updates

getWebhookInfo()

Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.

parameters

this method takes no parameters.

returns

WebhookInfo

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 { WebhookInfo } from "@yaebal/types";

await bot.api.call<WebhookInfo>("getWebhookInfo");