-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkeyboards.py
More file actions
25 lines (23 loc) · 888 Bytes
/
Copy pathkeyboards.py
File metadata and controls
25 lines (23 loc) · 888 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
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
def yes_no_keyboard():
# Initialize the reply keyboard with "Yes", "No", and "/abort" buttons
reply_kb = ReplyKeyboardMarkup(
keyboard=[
[KeyboardButton(text="Yes"), KeyboardButton(text="No")], # "Yes" and "No" in the same row
[KeyboardButton(text="/abort")] # "/abort" button on a new row
],
resize_keyboard=True,
one_time_keyboard=True
)
return reply_kb
def next_keyboard():
# Initialize the reply keyboard with "Next" and "/abort" buttons
reply_kb = ReplyKeyboardMarkup(
keyboard=[
[KeyboardButton(text="Next")], # "Next" button in a single row
[KeyboardButton(text="/abort")] # "/abort" button on a new row
],
resize_keyboard=True,
one_time_keyboard=True
)
return reply_kb