Command exited with code 0. Command output: self.save_workspace(ws) async def _auto_pin_status(self, ws: Workspace) -> None: if not self.bot: return info = [] info.append("🟢 **BRIDGE ACTIVE**" if ws.active else "🔴 **BRIDGE INACTIVE**") info.append(f"📱 **Mode:** {ws.active_mode.upper()}") if ws.active_mode == "firebase" and ws.firebase_auth: info.append(f"🔐 **Auth:** `Set`") if ws.device_id: info.append(f"📱 **Device:** `{ws.device_id}`") if ws.group_id: gname = next((n for n, i in ws.saved_groups.items() if str(i) == str(ws.group_id)), None) if gname: info.append(f"📡 **Group:** {gname} (`{ws.group_id}`)") else: info.append(f"📡 **Group:** `{ws.group_id}`") if ws.forward_to: info.append(f"📞 **Forward:** `{ws.forward_to}`") info.append(f"📊 **Sent:** {ws.sent}") info.append(f"🤖 **TG:** {'✅ Ready' if self.main_client_ready else '❌ Not ready'}") msg = await self.send(ws.user_id, "\n".join(info), keyboard=self._workspace_menu(ws)) if msg: if ws.pinned_status_msg_id: try: await self.bot.unpin_chat_message(int(ws.user_id), ws.pinned_status_msg_id) except Exception as e: log(f"[pin] unpin old failed: {e}") try: await self.bot.pin_chat_message(int(ws.user_id), msg.id, both_sides=True, disable_notification=True) ws.pinned_status_msg_id = msg.id self.save_workspace(ws) log(f"[pin] status pinned for {ws.user_id}") except Exception as e: log(f"[pin] pin failed: {e}") def _load_collected_firebases(self) -> dict[str, Any]: if COLLECTED_FB_FILE.exists(): return load_json(COLLECTED_FB_FILE) return {}