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

Function start

examples/asynchronous_telebot/mini_app.py:19–27  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

17
18@bot.message_handler(commands=["start"])
19async def start(message):
20 reply_keyboard_markup = ReplyKeyboardMarkup(resize_keyboard=True)
21 reply_keyboard_markup.row(KeyboardButton("Start MiniApp", web_app=WebAppInfo(WEB_URL)))
22
23 inline_keyboard_markup = InlineKeyboardMarkup()
24 inline_keyboard_markup.row(InlineKeyboardButton('Start MiniApp', web_app=WebAppInfo(WEB_URL)))
25
26 await bot.reply_to(message, "Click the bottom inline button to start MiniApp", reply_markup=inline_keyboard_markup)
27 await bot.reply_to(message, "Click keyboard button to start MiniApp", reply_markup=reply_keyboard_markup)
28
29@bot.message_handler(content_types=['web_app_data'])
30async def web_app(message):

Callers

nothing calls this directly

Calls 8

rowMethod · 0.95
rowMethod · 0.95
ReplyKeyboardMarkupClass · 0.90
KeyboardButtonClass · 0.90
WebAppInfoClass · 0.90
reply_toMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…