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

javascript · 61 lines

Raw
1/**#command2name: /myref3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12Bot.runCommand('/delete_msg')13let list = Bot.getProperty("ref_list_" + user.id) || [];14 15if (!list.length) {16 Bot.sendMessage("No referrals yet.");17} else {18 19let count = Bot.getProperty("ref_count_" + user.id) || 0;20 21let text = `<b>Your Referrals</b>22 23👥 Total Referrals: ${count}24 25<b>Latest 5 Referrals:</b>26 27`;28 29list.slice(-5).reverse().forEach((u, i) => {30  text += `${i + 1}. ${u.name}31ID: <code>${u.id}</code>32Username: @${u.username || "None"}33 34`;35});36 37Api.sendMessage({38  text,39  parse_mode: "HTML"40});41}42 43Api.sendMessage({44  text: `🎉 <b>Your Referral URL</b>45  46/ref_benifit47 48<code>https://t.me/${bot.name}?start=${user.id}</code>`,49  parse_mode: "HTML",50  reply_markup: {51    inline_keyboard: [52      [53        {54          text: "📤 Share Referral Link",55          url: `https://t.me/share/url?url=https://t.me/${bot.name}?start=${user.id}`,56          style: "success"57        }58      ]59    ]60  }61});