-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboards.py
28 lines (20 loc) · 964 Bytes
/
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
from aiogram.types import ReplyKeyboardMarkup, ReplyKeyboardRemove
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
main_menu_button1 = InlineKeyboardButton(text="Book a Ride", callback_data="book_ride")
main_menu_button2 = InlineKeyboardButton(text="Booking History", callback_data="booking_history")
main_menu_button3 = InlineKeyboardButton(text="Change Settings", callback_data="settings")
main_menu_button4 = InlineKeyboardButton(text="Get Help", callback_data="get_help")
MAIN_MENU_INLINE_KEYBOARD = (
InlineKeyboardMarkup()
.add(main_menu_button1, main_menu_button2)
.add(main_menu_button3, main_menu_button4)
)
VEHICLE_TYPE_KEYBOARD = (
ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
.add("Auto", "Mini")
.add("Sedan", "SUV")
)
PAYMENT_MODE_KEYBOARD = ReplyKeyboardMarkup(
resize_keyboard=True, one_time_keyboard=True
).add("Cash", "Online")
REMOVE_KEYBOARD = ReplyKeyboardRemove()