16 lines
451 B
Python
16 lines
451 B
Python
from typing import Optional
|
|
|
|
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton
|
|
|
|
from .base import Markup
|
|
|
|
|
|
class SimpleMarkup (Markup):
|
|
tag = "start"
|
|
|
|
def build(self, *args, **kwargs) -> Optional[InlineKeyboardMarkup]:
|
|
return (InlineKeyboardMarkup()
|
|
.add(InlineKeyboardButton("start", callback_data="start"))
|
|
.add(InlineKeyboardButton("help", callback_data="help"))
|
|
)
|