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
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { WebhookInfo } from "@yaebal/types";
await bot.api.call<WebhookInfo>("getWebhookInfo");official Bot API docs: https://core.telegram.org/bots/api/#getwebhookinfo