Update main.py

This commit is contained in:
Egor
2026-02-02 00:50:01 +03:00
committed by GitHub
parent 5a878239f3
commit c204194b8b
+8
View File
@@ -715,6 +715,14 @@ async def main():
timeline.log_summary()
summary_logged = True
# Отправляем стартовое уведомление в админский чат
try:
from app.services.startup_notification_service import send_bot_startup_notification
await send_bot_startup_notification(bot)
except Exception as startup_notify_error:
logger.warning(f'Не удалось отправить стартовое уведомление: {startup_notify_error}')
try:
while not killer.exit:
await asyncio.sleep(1)