Files
waterfundbot/bot/app/keyboards.py
2023-11-14 16:15:21 +03:00

39 lines
916 B
Python
Raw Permalink 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 telebot.types import (
InlineKeyboardButton as button,
InlineKeyboardMarkup as keyboard,
)
def setup() -> keyboard:
return keyboard(
keyboard=[
[button(text="💸 Стать участником", callback_data="register_group_member")],
]
)
def cancel() -> keyboard:
return keyboard(
keyboard=[
[button(text="❌ Отменить", callback_data="cancel")],
]
)
def fund_markup() -> keyboard:
return keyboard(
keyboard=[
[button(text="✅ Я скинул", callback_data="contributed")],
[button(text="🏁 Завершить сбор", callback_data="close_fund")],
]
)
def yes_no() -> keyboard:
return keyboard(
keyboard=[
[button(text="✅ Да", callback_data="yes")],
[button(text="❌ Нет", callback_data="no")],
]
)