from src.modules.standart.config.config import yaml_load from asyncio import run from aiogram import Bot, Dispatcher async def main(): try: bot = Bot(token=yaml_load["TELEGRAM"]["TOKEN"]) dp = Dispatcher() await dp.start_polling(bot) finally: await bot.session.close() if __name__ == "__main__": run(main())