Webhook class for managing Telegram bot webhook configuration. Handles setting up and configuring webhooks for Telegram bots.
Creates a new Webhook instance.
The Telegram bot token
The incoming request object used to determine the webhook URL
Removes the webhook configuration from Telegram.
Promise that resolves to the fetch response from Telegram
Will throw an error if the fetch request fails
Sets the webhook URL for the Telegram bot.
Webhook class for managing Telegram bot webhook configuration. Handles setting up and configuring webhooks for Telegram bots.