-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboards.py
65 lines (53 loc) · 2.48 KB
/
keyboards.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
from aiogram.types import (
InlineKeyboardMarkup,
InlineKeyboardButton
)
def admin_keyboard():
buttons = [
[InlineKeyboardButton(text="Добавить пользователя в вайтлист", callback_data="admin_add-whitelist")],
[InlineKeyboardButton(text="Удалить пользователя из вайтлиста", callback_data="admin_del-whitelist")],
[InlineKeyboardButton(text="Сделать пользователя админом", callback_data="admin_add-admin")],
[InlineKeyboardButton(text="Отобрать права админа у пользователя", callback_data="admin_del-admin")],
[InlineKeyboardButton(text="Закрыть", callback_data="admin_cancel-panel")]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard
def admin_keyboard_cancel():
buttons = [
[InlineKeyboardButton(text="Отмена", callback_data="admin_cancel")]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard
def user_keyboard():
buttons = [
[InlineKeyboardButton(text="Стереть мне память(", callback_data="user_clear")],
[InlineKeyboardButton(text="Задать моё поведение", callback_data="user_set-prompt")],
[InlineKeyboardButton(text="Сбросить моё поведение до заводского", callback_data='user_reset-prompt')],
[InlineKeyboardButton(text="Закрыть", callback_data="user_cancel-panel")]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard
def user_keyboard_foolproof_his():
buttons = [
[
InlineKeyboardButton(text="Да! Иди в жопу", callback_data="user_confirm-his"),
InlineKeyboardButton(text="Нет, прости...", callback_data="user_no-confirm-his")
]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard
def user_keyboard_foolproof_ins():
buttons = [
[
InlineKeyboardButton(text="Да!", callback_data="user_confirm-ins"),
InlineKeyboardButton(text="Нет...", callback_data="user_no-confirm-ins")
]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard
def user_keyboard_cancel():
buttons = [
[InlineKeyboardButton(text="Назад", callback_data="user_cancel")]
]
keyboard = InlineKeyboardMarkup(inline_keyboard=buttons)
return keyboard