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

Function start

examples/mini_app.py:18–26  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

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