getWebhookInfo method

Future<WebhookInfo> 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.

https://core.telegram.org/bots/api#getwebhookinfo

Implementation

Future<WebhookInfo> getWebhookInfo() async =>
    WebhookInfo.fromJson(await HttpClient.httpGet(_apiUri('getWebhookInfo')));