feat(config): add auto bump and captcha options

This commit is contained in:
2026-08-07 09:04:16 +05:00
parent f76c74ce3f
commit d6d2752341
2 changed files with 37 additions and 2 deletions
+5 -1
View File
@@ -379,7 +379,11 @@ class TelegramStarsBot:
# _main_loop - Основной цикл для остлеживания темы
# _bump_loop - Цикл для авто-поднятия темы
await asyncio.gather(self._main_loop(), self._bump_loop())
if self.config.enable_auto_bump:
await asyncio.gather(self._main_loop(), self._bump_loop())
else:
await self._main_loop()
except Exception as e:
logger.error(f"Ошибка в главном процессе бота: {e}")