-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.py
60 lines (35 loc) · 1.16 KB
/
main.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from aiogram.dispatcher.filters import Text
from aiogram import executor
import json
import os
file_path = os.path.join(os.path.dirname(__file__), 'config.json')
with open(file_path, 'r') as json_file:
config_dict = json.load(json_file)
panel_address = config_dict['panel_address']
admin_chat_id= config_dict['admin_chat_id']
panel_username= config_dict['panel_username']
panel_pass = config_dict['panel_pass']
from config import dp, bot
#main menu and start
from handlers.start import start_setup
start_setup()
#dokme haye laqv
from handlers.cancel import cancel_setup
cancel_setup()
#tanzimat tepmlate
from handlers.template import template_add_setup, template_remove_setup, template_setup
template_setup()
template_remove_setup()
template_add_setup()
#tanzimat node
from handlers.node import node_setup, new_node_setup, update_node_setup
node_setup()
new_node_setup()
update_node_setup()
#tanzimat sakhte config
from handlers.cnofig_manage import config_setup, config_create_manual_setup, config_create_template_setup
config_setup()
config_create_manual_setup()
config_create_template_setup()
if __name__ == "__main__":
executor.start_polling(dp)