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 2h agoCreated Aug 27, 2026
Back to folder

commands/_group_handler.js

javascript · 105 lines

Raw
1/**#command2name: /group_handler3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: true8need_reply: false9is_web: 110#command**/11 12// ==========================================================13// 📡 GIFT — GROUP REGISTRATION HANDLER14// TELEBOTHOST15//16// • Automatically remembers groups Gift is in17// • Runs when Gift receives a normal message18// • Does NOT send anything19// • Does NOT interfere with Gift AI20// ==========================================================21 22 23// ==========================================================24// 🛡️ SAFETY CHECK25// ==========================================================26 27if (28  !update ||29  !update.message ||30  !update.message.chat31) {32  return;33}34 35 36// ==========================================================37// 📦 GET CHAT38// ==========================================================39 40var chat = update.message.chat;41 42 43// ==========================================================44// 🚫 PRIVATE CHAT45// ==========================================================46 47if (48  chat.type !== "group" &&49  chat.type !== "supergroup"50) {51  return;52}53 54 55// ==========================================================56// 🆔 GROUP ID57// ==========================================================58 59var groupId = String(chat.id);60 61 62// ==========================================================63// 📦 GET SAVED GROUPS64// ==========================================================65 66var groups =67  await db.bot.get(68    "GIFT_GROUPS",69    []70  );71 72 73// ==========================================================74// 🛡️ DATABASE SAFETY75// ==========================================================76 77if (!Array.isArray(groups)) {78  groups = [];79}80 81 82// ==========================================================83// 🚫 DUPLICATE CHECK84// ==========================================================85 86if (groups.indexOf(groupId) !== -1) {87  return;88}89 90 91// ==========================================================92// ➕ ADD GROUP93// ==========================================================94 95groups.push(groupId);96 97 98// ==========================================================99// 💾 SAVE100// ==========================================================101 102await db.bot.set(103  "GIFT_GROUPS",104  groups105);