-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmarkups.py
93 lines (90 loc) · 3.23 KB
/
markups.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
from aiogram.types.inline_keyboard import (InlineKeyboardMarkup,
InlineKeyboardButton)
from localization import local
from config import config
def report_menu_ikbd(message_id: int, reporter_user_id: int, violator_user_id: int):
buttons = [
[
InlineKeyboardButton(
text=local[config.lang]["action_del"]["text"],
callback_data=local[config.lang]["action_del"]["data"].format(
message_id=message_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_del_mute_1h"]["text"],
callback_data=local[config.lang]["action_del_mute_1h"]["data"].format(
message_id=message_id,
user_id=violator_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_del_mute_1d"]["text"],
callback_data=local[config.lang]["action_del_mute_1d"]["data"].format(
message_id=message_id,
user_id=violator_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_del_mute_1w"]["text"],
callback_data=local[config.lang]["action_del_mute_1w"]["data"].format(
message_id=message_id,
user_id=violator_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_del_ban"]["text"],
callback_data=local[config.lang]["action_del_ban"]["data"].format(
message_id=message_id,
user_id=violator_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_dis"]["text"],
callback_data=local[config.lang]["action_dis"]["data"]
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_dis_mute_1h"]["text"],
callback_data=local[config.lang]["action_dis_mute_1h"]["data"].format(
user_id=reporter_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_dis_mute_1d"]["text"],
callback_data=local[config.lang]["action_dis_mute_1d"]["data"].format(
user_id=reporter_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_dis_mute_1w"]["text"],
callback_data=local[config.lang]["action_dis_mute_1w"]["data"].format(
user_id=reporter_user_id
)
)
],
[
InlineKeyboardButton(
text=local[config.lang]["action_dis_ban"]["text"],
callback_data=local[config.lang]["action_dis_ban"]["data"].format(
user_id=reporter_user_id
)
)
]
]
return InlineKeyboardMarkup(inline_keyboard=buttons)