-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot_reply_markup.py
More file actions
36 lines (24 loc) · 921 Bytes
/
Copy pathbot_reply_markup.py
File metadata and controls
36 lines (24 loc) · 921 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
34
35
36
from aiogram import types
def dict_menu(command_dict, row_width=2):
markup = types.ReplyKeyboardMarkup(row_width=row_width, resize_keyboard=True)
markup.add(*list(command_dict.values()))
return markup
def start():
markup = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)
button = types.KeyboardButton(text="Старт")
markup.add(button)
return markup
def nothing():
return types.ReplyKeyboardRemove()
def cancel():
markup = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)
markup.add("Отмена")
return markup
def user_accept():
markup = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)
markup.add("Давай начнем!")
return markup
def time_to_gift():
markup = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)
markup.add("Время дарить подарки!")
return markup