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] @@ -1393,6 +1393,10 @@ user_id = ws.user_id if text in ("🔐 Login Main Account", "🔐 Connect Telegram"): + if text == "🔐 Login Main Account" and not self.is_admin(user_id): + return + if text == "🔐 Login Main Account": + ws.session_base = str(LEGACY_SESSION_BASE) ws.state = "await_phone" self.save_workspace(ws) await self.send( @@ -1402,7 +1402,7 @@ return if text == "👥 All Users": - if ws.user_id != self.legacy_owner_id: + if not self.is_admin(ws.user_id): return lines = [] for u_id in sorted(os.listdir(str(USERS_DIR))): [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.