Files
demo_spa_bot/main.py
T

23 lines
444 B
Python

import asyncio
import logging
from aiogram import Bot, Dispatcher
from aiogram.fsm.storage.memory import MemoryStorage
from app.config import BOT_TOKEN
from app.handlers import start
logging.basicConfig(level=logging.INFO)
async def main():
bot = Bot(token=BOT_TOKEN)
dp = Dispatcher(storage=MemoryStorage())
dp.include_router(start.router)
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())