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
getWebhookInfo is directly typed on Api — call it straight off bot.api.
await bot.api.getWebhookInfo();official Bot API docs: https://core.telegram.org/bots/api/#getwebhookinfo