Update main.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user