Files
PrimoPearlBot/BotCode/keyboards/inline_kb/randnum_kb.py
2025-02-08 19:12:38 +07:00

22 lines
703 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.
# BotCode/keyboards/inline_kb/randnum_kb.py
# Создания инлайн-клавиатуры на команду: /randnum
from aiogram.types import InlineKeyboardMarkup
from BotLibrary import ikb
# Создание роутера и настройка экспорта
__all__ = ("get_randnum_kb", "ButtonInl")
# Класс с параметрами кнопок
class ButtonInl:
text = "Получить ответ"
mark_cbd = "mark_cbd"
# Функция создания клавиатуры на команду: /actor
def get_randnum_kb() -> InlineKeyboardMarkup:
ikb.button(text=ButtonInl.text, callback_data=ButtonInl.mark_cbd)
ikb.add_row(1)
return ikb.as_markup()