refactor: remove "both" mode from BOT_RUN_MODE, keep only polling and webhook

This commit is contained in:
Fringg
2026-02-09 17:32:17 +03:00
parent 0b86f379b4
commit efa3a5d457
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -517,8 +517,8 @@ async def main():
logger.error('❌ Ошибка подготовки внешней админки: %s', error)
bot_run_mode = settings.get_bot_run_mode()
polling_enabled = bot_run_mode in {'polling', 'both'}
telegram_webhook_enabled = bot_run_mode in {'webhook', 'both'}
polling_enabled = bot_run_mode == 'polling'
telegram_webhook_enabled = bot_run_mode == 'webhook'
payment_webhooks_enabled = any(
[