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 2d agoCreated Jul 2, 2026
commands/_clone.js
javascript · 161 lines
1/**#command2name: /clone3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12//========================13// Private Only14//========================15 16if (chat.type != "private") {17 return Api.sendMessage({18 text:19`⚠️ <b>Sensitive Command</b>20 21Use this command in private chat.`,22 parse_mode: "HTML",23 reply_markup: {24 inline_keyboard: [[25 {26 text: "🔒 Open Private",27 url: `https://t.me/${bot.username}?start=clone`28 }29 ]]30 }31 });32}33 34//========================35// Usage36//========================37 38if (!params) {39 return Api.sendMessage({40 parse_mode: "HTML",41 text:42`<b>🤖 Clone Bot</b>43 44<code>/clone BOT_TOKEN</code>45 46Example47 48<code>/clone 123456789:AAxxxxxxxxxxxxxxxxxxxxxxxxxx</code>`49 });50}51 52//========================53// Checking54//========================55 56let wait = await Api.sendMessage({57 text: "🔍 Checking bot token..."58});59 60let check = await HTTP.get({61 url: "https://api.telegram.org/bot" + params + "/getMe"62});63 64if (!check.ok || !check.data.ok) {65 66 return Api.editMessageText({67 chat_id: chat.id,68 message_id: wait.result.message_id,69 text: "❌ Invalid bot token."70 });71 72}73 74let info = check.data.result;75 76//========================77// Already Pending78//========================79 80if (Bot.get("clone_request_" + user.id)) {81 82 return Api.editMessageText({83 chat_id: chat.id,84 message_id: wait.result.message_id,85 text:86"⚠️ You already have a pending request."87 });88 89}90 91//========================92// Save93//========================94 95Bot.set("clone_request_" + user.id, true);96Bot.set("clone_token_" + user.id, params);97Bot.set("clone_botname_" + user.id, info.first_name);98Bot.set("clone_username_" + user.id, info.username || "");99Bot.set("clone_botid_" + user.id, info.id);100 101//========================102// Admin103//========================104 105Api.sendMessage({106 107 chat_id: process.env.ADMIN_ID,108 109 parse_mode: "HTML",110 111 text:112 113`🆕 <b>New Clone Request</b>114 115👤 <b>User</b>116${user.first_name}117🆔 <code>${user.id}</code>118 119🤖 <b>Bot Name</b>120${info.first_name}121 122👤 Username123@${info.username}124 125🆔 Bot ID126<code>${info.id}</code>127 128Approve this request?`,129 130 reply_markup:{131 132 inline_keyboard:[[133 {134 text:"✅ Approve",135 callback_data:"/approve " + user.id136 }137 ]]138 139 }140 141});142 143//========================144 145Api.editMessageText({146 147chat_id:chat.id,148 149message_id:wait.result.message_id,150 151parse_mode:"HTML",152 153text:154 155`✅ <b>Request Submitted</b>156 157Your request has been sent to the administrator.158 159Please wait for approval.`160 161});