add user_hello dialog
This commit is contained in:
24
app/bot.py
24
app/bot.py
@@ -0,0 +1,24 @@
|
||||
import asyncio
|
||||
|
||||
from aiogram import Bot, Dispatcher
|
||||
from aiogram_dialog import setup_dialogs
|
||||
from bestconfig import Config
|
||||
|
||||
from app.dialogs import dialogs_router
|
||||
from app.handlers import handlers_router
|
||||
|
||||
cfg = Config()
|
||||
|
||||
bot = Bot(token=cfg.get("bot_token"))
|
||||
dp = Dispatcher()
|
||||
|
||||
|
||||
async def main():
|
||||
dp.include_router(handlers_router)
|
||||
dp.include_router(dialogs_router)
|
||||
setup_dialogs(dp)
|
||||
await dp.start_polling(bot)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user