Files
PrimoStoryBot/main.py
2025-08-10 22:22:38 +07:00

26 lines
750 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# main.py
# Основной код проекта, который и соединяет в себе все его возможности
from asyncio import run
from middleware.loggers import setup_logging
from bot import *
async def main() -> None:
"""Входная точка проекта. Запуск бота."""
# Запуск логирования
setup_logging()
# Получение информации о боте
await BotInfo.setup(bot)
# Подключение главного маршрутизатора
dp.include_router(router)
# Включение опроса бота
await dp.start_polling(bot)
# Вечная загрузка бота
if __name__ == "__main__":
run(main())