Files
BOTKlining/doners/Shop-bot/keyboards/default/markups.py
2025-06-08 20:55:08 +09:00

32 lines
857 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from aiogram.types import ReplyKeyboardMarkup
back_message = '👈 Назад'
confirm_message = '✅ Подтвердить заказ'
all_right_message = 'Все верно'
cancel_message = '🚫 Отменить'
def confirm_markup():
markup = ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
markup.add(confirm_message)
markup.add(back_message)
return markup
def back_markup():
markup = ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
markup.add(back_message)
return markup
def check_markup():
markup = ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
markup.row(back_message, all_right_message)
return markup
def submit_markup():
markup = ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
markup.row(cancel_message, all_right_message)
return markup