MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / gen_markup

Function gen_markup

examples/inline_keyboard_example.py:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7bot = telebot.TeleBot(TELEGRAM_TOKEN)
8
9def gen_markup():
10 markup = InlineKeyboardMarkup()
11 markup.row_width = 2
12 markup.add(InlineKeyboardButton("Yes", callback_data="cb_yes"),
13 InlineKeyboardButton("No", callback_data="cb_no"))
14 return markup
15
16@bot.callback_query_handler(func=lambda call: True)
17def callback_query(call):

Callers 1

message_handlerFunction · 0.85

Calls 3

addMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…