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