Paradox/TBLWebappBotPublic · Community Store Listing
Webapp Demo Bot
7 commands0 envUpdated 1mo agoCreated Dec 13, 2025
commands/_inline_query.js
javascript · 36 lines · click line # to share
1/**#command2name: /inline_query3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// Command: /inline_query13 14// This handler responds to all inline queries with a simple test article15 16if (!request.id) return // Safety check — must have inline_query_id17 18// Create a basic article object19const result = {20 type: "article",21 id: "test_" + Date.now(), // Unique ID for each response22 title: "✅ Inline Test Works",23 description: "Tap to send a test message",24 input_message_content: {25 message_text: "🚀 Inline mode is working perfectly!",26 parse_mode: "HTML"27 }28}29 30// Send the result back to Telegram31Api.answerInlineQuery({32 inline_query_id: request.id,33 results: [result],34 cache_time: 0, // Always send fresh result35 is_personal: true // Personalized for each user36})