-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
33 lines (26 loc) · 778 Bytes
/
Copy pathrun.py
File metadata and controls
33 lines (26 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import asyncio
from misc.config import TOKEN
from aiogram import Bot, Dispatcher
from app.handlers import router as handler_router
from app.expense_FSM import router as expense_router
from app.income_FSM import router as income_router
from app.transfer_FSM import router as transfer_router
from app.create_FSM import router as create_router
from app.update_FSM import router as update_router
bot = Bot(token=TOKEN)
dp = Dispatcher()
async def main():
dp.include_routers(
handler_router,
expense_router,
income_router,
transfer_router,
create_router,
update_router
)
await dp.start_polling(bot)
if __name__ == "__main__":
try:
asyncio.run(main())
except KeyboardInterrupt:
print("Exit!")