feat(config): add auto bump and captcha options
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user