getWebhookInfo¶
Returns: WebhookInfo
- class litegram.methods.get_webhook_info.GetWebhookInfo(**extra_data: Any)[source]¶
Use this method to get current webhook status. Requires no parameters. On success, returns a
litegram.types.webhook_info.WebhookInfoobject. If the bot is usinglitegram.methods.get_updates.GetUpdates, will return an object with the url field empty.
Usage¶
As bot method¶
result: WebhookInfo = await bot.get_webhook_info(...)
Method as object¶
Imports:
from litegram.methods.get_webhook_info import GetWebhookInfoalias:
from litegram.methods import GetWebhookInfo
With specific bot¶
result: WebhookInfo = await bot(GetWebhookInfo(...))