(message)
| 16 | |
| 17 | @bot.message_handler(commands=["start"]) |
| 18 | def 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']) |
| 29 | def web_app(message): |
nothing calls this directly
no test coverage detected
searching dependent graphs…