Paradox/TBLWebappBotPublic · Community Store Listing
Webapp Demo Bot
7 commands0 envUpdated 1mo agoCreated Dec 13, 2025
commands/_.js
javascript · 32 lines · click line # to share
1/**#command2name: *3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/* Command: * */13 14// Handle web_app_data only - ignore everything else15if (update.message?.web_app_data) {16 17 let buttonText = update.message.web_app_data.button_text;18 let data = update.message.web_app_data.data;19 20 Api.sendMessage({21 chat_id: chat.chatid,22 text: `<tg-emoji emoji-id="6028346797368283073">✅</tg-emoji> <b>Data Received</b>\n\n` +23 `<b>Button:</b> ${buttonText}\n` +24 `<b>Data:</b> <code>${data}</code>`,25 parse_mode: "HTML"26 });27 28 return;29}30 31// Ignore all other updates (do nothing)32return;