ShopBot/keyboard/default/checkout.py

20 lines
625 B
Python
Raw Normal View History

2022-06-04 22:02:51 +03:00
from aiogram.types.reply_keyboard import ReplyKeyboardMarkup, KeyboardButton
from load import messages
2022-06-05 15:02:41 +03:00
2022-06-04 22:02:51 +03:00
def checkout_btn() -> ReplyKeyboardMarkup:
return ReplyKeyboardMarkup([[
KeyboardButton(messages.all_right_message),
KeyboardButton(messages.cancel_message)
]], resize_keyboard=True)
2022-06-05 15:02:41 +03:00
2022-06-16 00:32:17 +03:00
def confirm_all_info(load: bool = False):
2022-06-04 22:02:51 +03:00
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton(messages.all_right_message))
2022-06-16 00:32:17 +03:00
if not load:
markup.row(KeyboardButton(messages.save_and_continue))
2022-06-04 22:02:51 +03:00
markup.row(KeyboardButton(messages.cancel_message))
return markup