millswelbeck148/SireimadeBotPublic · Bot Template

AISireImade appears to be a Telegram automation bot. Commands include /start, /about, /support, /id, /admin, /ban, /unban, /x. Observed in code: messaging, keyboards, games.

Utilityutility
ProfileTelegram
112 commands3 envUpdated 1h agoCreated Aug 27, 2026
Back to folder

commands/_channeloff.js

javascript · 91 lines

Raw
1/**#command2name: /channeloff3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// 💜 GIFT AI — /CHANNELOFF14// DISABLE "SEND AS CHANNEL" IN THIS GROUP15//16// • ADMIN ONLY17// • PER-GROUP SETTING18// • REPLIES DIRECTLY TO THE ADMIN19// • NORMAL PERSONAL ACCOUNTS ARE NOT AFFECTED20// ==========================================================21 22if (23  chat.type !== "group" &&24  chat.type !== "supergroup"25) {26  return Bot.sendMessage(27    "❌ This command only works in groups.",28    {29      reply_to_message_id: request.message_id30    }31  );32}33 34// ----------------------------------------------------------35// CHECK ADMIN36// ----------------------------------------------------------37 38let adminCheck = await Api.call("getChatMember", {39  chat_id: chat.id,40  user_id: user.id41});42 43if (44  !adminCheck.ok ||45  !adminCheck.result ||46  (47    adminCheck.result.status !== "administrator" &&48    adminCheck.result.status !== "creator"49  )50) {51  return Bot.sendMessage(52    "❌ Only group admins can use /channeloff.",53    {54      reply_to_message_id: request.message_id55    }56  );57}58 59// ----------------------------------------------------------60// SAVE SETTING61// ----------------------------------------------------------62 63let saved = await db.bot.set(64  "channel_mode:" + chat.id,65  false66);67 68if (!saved || saved.ok === false) {69  return Bot.sendMessage(70    "⚠️ I couldn't save the channel protection setting.",71    {72      reply_to_message_id: request.message_id73    }74  );75}76 77// ----------------------------------------------------------78// REPLY DIRECTLY TO THE ADMIN79// ----------------------------------------------------------80 81Bot.sendMessage(82  "📢 <b>CHANNEL CHAT OFF</b>\n\n" +83  "Users can no longer chat as their linked channels in this group.\n\n" +84  "👤 Personal accounts: <b>Allowed</b>\n" +85  "📢 Channel identity: <b>Blocked</b>\n" +86  "👑 Admins: <b>Exempt</b>",87  {88    parse_mode: "HTML",89    reply_to_message_id: request.message_id90  }91);