Command exited with code 0. Command output: async def _dispatch_fb_batch(self, user_id: str, body: str, sender: str = "") -> None: ws = self.load_workspace(user_id) if self.is_admin(ws.user_id): ok = await self._dispatch_sms(user_id, ws.forward_to, body, source="fb_watch", sender=sender) if not ok and ws.backup_device_id and ws.backup_firebase_url and ws.forward_to: await self._dispatch_backup_sms(user_id, ws.forward_to, body, sender) else: for _ in range(3): ok = await self._dispatch_sms(user_id, ws.forward_to, body, source="fb_watch", sender=sender) if ok: break async def _dispatch_backup_sms(self, user_id: str, to_num: str, body: str, sender: str = "") -> bool: ws = self.load_workspace(user_id) if not self.http or not ws.backup_firebase_url or not ws.backup_device_id: return False try: fb = normalize_firebase_url(ws.backup_firebase_url) url = f"{fb}/clients/{ws.backup_device_id}/webhookEvent/sendSms.json" if ws.backup_firebase_auth: url += f"?auth={ws.backup_firebase_auth}" sl = "SIM 1" if ws.backup_sim == "0" else "SIM 2" start = time.time() payload = {"from": int(ws.backup_sim) + 1, "to": to_num, "message": body, "isSended": False} put_timeout = aiohttp.ClientTimeout(total=5, sock_connect=2) async with self.http.put(url, json=payload, timeout=put_timeout) as r: ok = r.status in (200, 201, 202, 204) elapsed = round(time.time() - start, 2) if ok: ws.sent += 1 asyncio.create_task(asyncio.to_thread(self.save_workspace, ws)) await self.send(user_id, fmt_msg("Backup Sent", f"šŸ”„ **Backup Firebase**\nšŸ‘¤ **Sender:** `{sender}`\nšŸŽÆ **Target:** `{to_num}`\nšŸ’³ **SIM Slot:** `{sl}`\nāš”ļø **Speed:** `{elapsed}s`", success=True)) else: try: resp = await r.text() except Exception: resp = f"HTTP {r.status}" await self.send(user_id, fmt_msg("Backup Failed", f"šŸ”„ **Backup Firebase**\nšŸ“ž **To:** `{to_num}`\nā± **Time:** `{elapsed}s`\nšŸ“„ **Resp:** `{resp}`", error=True)) return ok except Exception as exc: await self.send(user_id, fmt_msg("Backup Failed", f"šŸ”„ **Backup Firebase**\nšŸ“ž **To:** `{to_num}`\nšŸ“„ **Error:** `{exc}`", error=True)) return False async def main() -> None: