ShopBot/keyboard/default/checkout.py

19 lines
586 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-04 22:02:51 +03:00
def confirm_all_info():
markup = ReplyKeyboardMarkup(resize_keyboard=True)
markup.add(KeyboardButton(messages.all_right_message))
markup.row(KeyboardButton(messages.save_and_continue))
markup.row(KeyboardButton(messages.cancel_message))
return markup