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
27 commands3 envUpdated 3d agoCreated Jul 2, 2026
commands/_ref_posd.js
javascript · 40 lines
1/**#command2name: /ref_posd3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let referrer = User.getProperty("referrer");13 14if (referrer && !User.getProperty("ref_done")) {15 16 User.setProperty("ref_done", true, "boolean");17 18 let count = Bot.getProperty("ref_count_" + referrer) || 0;19 20 Bot.setProperty(21 "ref_count_" + referrer,22 count + 1,23 "number"24 );25 26 let list = Bot.getProperty("ref_list_" + referrer) || [];27 28 list.push({29 id: user.id,30 name: user.first_name,31 username: user.username32 });33 34 Bot.setProperty(35 "ref_list_" + referrer,36 list,37 "json"38 );39 40}