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] @@ -290,10 +290,6 @@ 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, @@ -309,6 +309,10 @@ self.main_client: Optional[Client] = None self.main_client_ready = False + 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 + def lock_for(self, user_id: str) -> asyncio.Lock: lock = self.workspace_locks.get(user_id) if lock is None: [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.