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 3d agoCreated Jul 2, 2026
Back to folder

commands/_search_result.js

javascript · 68 lines

Raw
1/**#command2name: /search_result3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let data = JSON.parse(content)13 14if (!data.items || data.items.length === 0) {15  Api.sendPhoto({16    chat_id: chat.chatid,17    photo:18      "https://i.ibb.co/mV4YjYz4/file-00000000cd2c7207b2a318a880f86586.png",19    caption: "❤️ NO RESULTS FOUND"20  })21  return22}23 24let media = [];25let url = "";26for (let i = 0; i < data.items.length; i++) {27  let item = data.items[i];28  url = url + "\n" + item.image29  media.push({30    type: "photo",31    media: item.image,32    ...(i === 0 && {33      caption: item.title34    })35  });36}37 38Api.sendMediaGroup({39  reply_to_message_id: request.message_id,40  chat_id: chat.chatid,41  media: JSON.stringify(media),42});43 44Api.sendMessage({45  reply_to_message_id: request.message_id,46  chat_id: chat.chatid,47  text: "Search more " + request.text,48  reply_markup: {49    inline_keyboard: [50      [51        {52          text: "🔍 Search More",53     switch_inline_query_current_chat: request.text,54          style: "primary"55        },56      {57        text: "Copy URL",58         copy_text: {59           text: url60         },61        // style: "primary"62      }63    ]64    ]65  }66});67 68Bot.runCommand("/askfb " + request.from.id);