-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkeyboard.py
134 lines (110 loc) · 4.41 KB
/
keyboard.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
from strings import AKI_LANG_CODE, DEV_URL
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
START_KEYBOARD_GROUP = InlineKeyboardMarkup(
[
[
InlineKeyboardButton('DEVELOPER👩💻', DEV_URL)
]
]
)
GUIDE_KEYBOARD = InlineKeyboardMarkup(
[
[
InlineKeyboardButton('USER GUIDE📖', url="https://telegra.ph/Akinator-Telegram-bot-10-08"),
InlineKeyboardButton('DEVELOPER👩💻', DEV_URL)
]
]
)
START_KEYBOARD = InlineKeyboardMarkup(
[
[
InlineKeyboardButton('DEVELOPER👩💻', DEV_URL)],
[
InlineKeyboardButton("Add me to group ➕", url="http://t.me/Akinatorq_bot?startgroup=botstart"),
InlineKeyboardButton('USER GUIDE📖', url="https://telegra.ph/Akinator-Telegram-bot-10-08")
]
]
)
#Shows a bunch of buttons to change the language of the Akinator when playing.
AKI_LANG_BUTTON = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(AKI_LANG_CODE['en'], callback_data='aki_set_lang_en'),
InlineKeyboardButton(AKI_LANG_CODE['ar'], callback_data='aki_set_lang_ar'),
InlineKeyboardButton(AKI_LANG_CODE['cn'], callback_data='aki_set_lang_cn'),
InlineKeyboardButton(AKI_LANG_CODE['de'], callback_data='aki_set_lang_de')
],
[
InlineKeyboardButton(AKI_LANG_CODE['es'], callback_data='aki_set_lang_es'),
InlineKeyboardButton(AKI_LANG_CODE['fr'], callback_data='aki_set_lang_fr'),
InlineKeyboardButton(AKI_LANG_CODE['il'], callback_data='aki_set_lang_il'),
InlineKeyboardButton(AKI_LANG_CODE['it'], callback_data='aki_set_lang_it')
],
[
InlineKeyboardButton(AKI_LANG_CODE['jp'], callback_data='aki_set_lang_jp'),
InlineKeyboardButton(AKI_LANG_CODE['kr'], callback_data='aki_set_lang_kr'),
InlineKeyboardButton(AKI_LANG_CODE['nl'], callback_data='aki_set_lang_nl'),
InlineKeyboardButton(AKI_LANG_CODE['pl'], callback_data='aki_set_lang_pl')
],
[
InlineKeyboardButton(AKI_LANG_CODE['pt'], callback_data='aki_set_lang_p'),
InlineKeyboardButton(AKI_LANG_CODE['ru'], callback_data='aki_set_lang_ru'),
InlineKeyboardButton(AKI_LANG_CODE['tr'], callback_data='aki_set_lang_tr'),
InlineKeyboardButton(AKI_LANG_CODE['id'], callback_data='aki_set_lang_id')
],
]
)
#Child Mode enable/disable Buttons
CHILDMODE_BUTTON = InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Enable🔒", callback_data='c_mode_1'),
InlineKeyboardButton("Disable🚫", callback_data='c_mode_0')
]
]
)
SHARE_BUTTON = InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Share📣", url="https://telegram.me/share/url?url=https://t.me/Akinatorq_bot"),
InlineKeyboardButton("Add me to group ➕", url="http://t.me/Akinatorq_bot?startgroup=botstart")
]
]
)
AKI_PLAY_KEYBOARD = InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Yes 👍", callback_data='aki_play_0'),
InlineKeyboardButton("No 👎", callback_data='aki_play_1'),
],
[
InlineKeyboardButton("Probably🤔 ", callback_data='aki_play_3'),
InlineKeyboardButton("Probably Not❌", callback_data='aki_play_4')
],
[
InlineKeyboardButton("I don't know🤷♂️", callback_data='aki_play_2'),
],
[ InlineKeyboardButton("Back↩️", callback_data= 'aki_play_5')
]
]
)
AKI_WIN_BUTTON = InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Yes👍", callback_data='aki_win_y'),
InlineKeyboardButton("No 👎", callback_data='aki_win_n'),
]
]
)
AKI_LEADERBOARD_KEYBOARD = InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Total Guesses👀", callback_data='aki_lead_tguess'),
InlineKeyboardButton("Correct Guesses✅", callback_data='aki_lead_cguess'),
],
[
InlineKeyboardButton("Wrong Guesses❌", callback_data='aki_lead_wguess'),
InlineKeyboardButton("Total Questions❓", callback_data='aki_lead_tquestions'),
]
]
)