tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
3.77k stars 440 forks source link

Add ignore setWebhook option #671

Open mhrlife opened 3 months ago

mhrlife commented 3 months ago

The setWebhook method is currently invoked automatically under all circumstances. However, in certain scenarios where multiple instances are running concurrently, this leads to a ratelimiter overload, resulting in bot crashes. This pull request introduces a backward-compatible solution by adding the IgnoreSetWebhook boolean field.