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

javascript · 35 lines

Raw
1/**#command2name: /broadcast3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (user.id != Number(process.env.ADMIN_ID)) {13  return Api.sendMessage({14    text: "⛔ Only the bot admin can use this command."15  });16}17 18if (!request.reply_to_message) {19  return Api.sendMessage({20    text: "❌ Reply to a message and then use /broadcast."21  });22}23 24await Bot.broadcast({25  method: "copyMessage",26  body:{27    from_chat_id: request.chat.id,28    message_id: request.reply_to_message.message_id29  },30  filters:{31    chatType: "private"32  },33  on_create: "on_br_create",34  on_complete: "on_br_done"35})