configureWebhook method
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.
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.');