suvo_/ImglyBotPublic · Bot Template

AIThis bot searches images through a Pinterest-related HTTP API and delivers results in private chats, inline mode, and guest business queries, with a search-more inline button and copy URL action. It tracks referrals from /start links, records referrer counts and lists, and displays referral benefits. The bot also handles business sticker messages by matching emoji and replying with a random sticker from the same set, asks users for feedback after feature usage, and includes an admin-only broadcast system plus a token-based clone-bot request flow.

Utilityimage-searchpinterestinline-modereferralbroadcastclone-bot
ProfileTelegram
27 commands3 envUpdated 2d agoCreated Jul 2, 2026
Back to folder

commands/_guest_result.js

javascript · 56 lines

Raw
1/**#command2name: /guest_result3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12 13let data = JSON.parse(content);14 15if (!data.items || data.items.length === 0) {16  return;17}18 19// Random item20let item = data.items[Math.floor(Math.random() * data.items.length)];21 22HTTP.post({23  url: "https://api.telegram.org/bot" + bot.token + "/answerGuestQuery",24  body: {25    guest_query_id: request.guest_query_id,26    result: JSON.stringify({27      type: "photo",28      id: String(Date.now()),29      photo_url: item.image,30      thumbnail_url: item.image,31      caption: item.title,32      reply_markup: {33        inline_keyboard: [34          [{35            text: "🔍 Search More",36            switch_inline_query_current_chat: item.title || "",37            style: "primary"38          }],39          [{40            text: "Copy URL",41            copy_text: {42              text: item.image43            },44            // style: "primary"45          }]46        ]47      }48    })49  },50  success: "/ok",51  error: "/err"52});53 54Bot.runCommand("/ref_posd")55 56Bot.runCommand("/askfb " + request.from.id);