123456789101112131415161718192021 |
- from aiogram.types import ReplyKeyboardRemove, \
- ReplyKeyboardMarkup, KeyboardButton, \
- InlineKeyboardMarkup, InlineKeyboardButton
- button_get_events = KeyboardButton('Мои мероприятия')
- events_kb = ReplyKeyboardMarkup(resize_keyboard=True)
- events_kb.add(button_get_events)
- def create_yes_no_btns(yes_data: str) -> InlineKeyboardMarkup:
- inline_btn_yes = InlineKeyboardButton(
- 'Да, отменяем!', callback_data=yes_data)
- inline_btn_no = InlineKeyboardButton(
- 'Нет, оставим, как есть', callback_data="cancel")
-
- inline_kb_yes_no = InlineKeyboardMarkup().add(inline_btn_yes)
- inline_kb_yes_no.add(inline_btn_no)
- return inline_kb_yes_no
|