configureWebhook method

Future<void> configureWebhook()

Configure a webhook used by this bot to receive updates.

For a default webhook managed by this library, you can use a Webhook. Alternatively, you can manage webhooks yourself by extending it.

See: https://core.telegram.org/bots/api#setwebhook

Implementation

Future<void> configureWebhook() => fetcher is Webhook
    ? (fetcher as Webhook).setWebhook()
    : throw TeleDartException(
        'Injected update fetcher is type of ${fetcher.runtimeType.toString()} instead of Webhook.');