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.js

javascript · 28 lines

Raw
1/**#command2name: /search3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let query = options.query;13 14if (!query) {15  Bot.sendMessage("Please enter a search query.")16  return;17}18 19HTTP.post({20  url: process.env.PINTEREST_API ,21  body: {22    query: query,23    count: options.type == "guest" ? 9 : 3,24    compact: true25  },26  success: (options.type != "guest") ? "/search_result" : "/guest_result",27  error: "/search_error"28});