The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -278,9 +278,22 @@ self.default_fcm_url = str(self.cfg.get("fcm_url", DEFAULT_FCM_URL)).strip() or DEFAULT_FCM_URL self.default_poll_interval = float(self.cfg.get("poll_interval", DEFAULT_POLL_INTERVAL)) self.legacy_owner_id = str(self.cfg.get("owner_id", "")).strip() + raw_admins = self.cfg.get("admin_ids", []) + if isinstance(raw_admins, list): + self.admin_ids = {str(x).strip() for x in raw_admins if str(x).strip()} + elif isinstance(raw_admins, str): + self.admin_ids = {x.strip() for x in raw_admins.split(",") if x.strip()} + else: + self.admin_ids = set() + if self.legacy_owner_id: + self.admin_ids.add(self.legacy_owner_id) self.owner_phone = str(self.cfg.get("phone", "")).strip() self.logs_group_id = str(self.cfg.get("logs_group_id", "")).strip() + def is_admin(self, user_id: str | int) -> bool: + uid = str(user_id).strip() + return uid in self.admin_ids or uid == self.legacy_owner_id + self.bot = Client( "sam_bridge_bot", api_id=self.api_id, [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.