18 lines
381 B
Python
18 lines
381 B
Python
import asyncio
|
|
from aiogram import Bot, Dispatcher
|
|
from app.config import settings
|
|
from app.handlers import start
|
|
from app.config import bot_settings
|
|
|
|
bot = Bot(bot_settings.BOT_TOKEN)
|
|
|
|
async def main():
|
|
bot = Bot(settings.BOT_TOKEN)
|
|
dp = Dispatcher()
|
|
|
|
dp.include_router(start.router)
|
|
|
|
await dp.start_polling(bot)
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main()) |