PaulSonOfLars / gotgbot

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
MIT License
469 stars 107 forks source link

Call DeleteWebhook before starting the polling loop #94

Closed PaulSonOfLars closed 1 year ago

PaulSonOfLars commented 1 year ago

What

Call DeleteWebhook before starting the long polling loop, simplifying the long polling code. Also, add a new DisableWebhookDeletion option, which allows you to manage webhook deletion yourself.

As a drive-by, improve docs and comments.

Impact