Make run deleteWebhook even if polling assumed
This commit is contained in:
parent
4ac6be06cf
commit
c309d4975e
@ -23,8 +23,8 @@ def create_bot(config: Config, i18n: I18N, engine):
|
||||
register_handlers(bot)
|
||||
setup_middlewares(bot, i18n, engine)
|
||||
add_custom_filters(bot, config)
|
||||
bot.delete_webhook()
|
||||
if config.use_webhook:
|
||||
bot.delete_webhook()
|
||||
bot.set_webhook(config.webhook.url,
|
||||
drop_pending_updates=config.webhook.drop_pending_updates,
|
||||
max_connections=config.webhook.max_connections)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user