-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (24 loc) · 698 Bytes
/
main.py
File metadata and controls
33 lines (24 loc) · 698 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
from telegram.ext import Application
from commands import (
admin_start_handler,
delete_resume_callback_handler,
normal_start_handler,
)
from config import bot_token
from get_resumes_conv import get_resumes_conv
from positions_conv import positions_conv
from database import create_tables
def main() -> None:
create_tables()
application = Application.builder().token(bot_token).build()
handlers = [
normal_start_handler,
admin_start_handler,
positions_conv,
get_resumes_conv,
delete_resume_callback_handler,
]
application.add_handlers(handlers)
application.run_polling()
if __name__ == "__main__":
main()