-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
39 lines (32 loc) · 999 Bytes
/
main.py
File metadata and controls
39 lines (32 loc) · 999 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
34
35
36
37
38
39
import asyncio
import logging
from app.work_menu import menu_wk, text_edit, newsletter, send_notifications, show_text, delay
from app.private_menu import menu_pr, subscribe
from app.money import replenishment
from app.admin_menu import admin, proxy
from app import general_hd, upload_account, upload_account2
from aiogram import Dispatcher
from config import bot
async def start():
dp = Dispatcher()
dp.include_routers(
general_hd.router,
text_edit.router,
newsletter.router,
send_notifications.router,
delay.router,
show_text.router,
menu_wk.router,
menu_pr.router,
subscribe.router,
replenishment.router,
upload_account.router,
admin.router,
proxy.router,
upload_account2.router,
)
logging.basicConfig(level=logging.INFO)
await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(start())