The command exited with code 0. Output: 1861: async def _on_main_message(self, client: Client, message) -> None: 1862- try: 1863- if not message or not message.text or not message.chat: 1864- return 1865- 1866- text = message.text.strip() 1867- cid = self._canonical_chat_id(message.chat.id, message.chat.type) 1868- typ = message.chat.type.value if hasattr(message.chat.type, "value") else str(message.chat.type).lower() 1869- 1870- if "private" in typ: 1871- return 1872- 1873- if not ( 1874- re.search(r"(?:To|Recipient|Receipt|Target(?:\s*đŸŽ¯)?)\s*(?:\([^)]+\))?\s*:\s*\+?\d", text, re.I) 1875- and re.search(r"(?:Message(?:\s*📩)?|Token|Body)\s*(?:\([^)]+\))?\s*:", text, re.I) 1876- ): 1877- return 1878- 1879- num, body = self._parse_message_payload(text) 1880- if not num or not body: 1881- return 1882- 1883- for user_id, ws in list(self.workspaces.items()): 1884- if not ws.active or not ws.device_id: 1885- continue 1886- if not ws.group_id or cid != self._canonical_chat_id(ws.group_id): 1887- continue 1888- 1889- log(f"Incoming matched for user {user_id}: {num} -> {body[:40]}...") 1890- asyncio.create_task(self._dispatch_sms(user_id, num, body)) 1891- except Exception as exc: 1892- log(f"[main handler] {exc}") 1893- 1894- def _parse_message_payload(self, text: str) -> tuple[Optional[str], Optional[str]]: 1895- text = re.split(r"One.tap copy", text, flags=re.I)[0] 1896- to_m = re.search( 1897- r"(?:To|Recipient|Receipt|Target(?:\s*đŸŽ¯)?)\s*(?:\([^)]+\))?\s*:\s*([+\d\s-]{8,22})", 1898- text, 1899- re.I, 1900- ) 1901- bod_m = re.search( 1902- r"(?:Message(?:\s*📩)?|Token|Body)\s*(?:\([^)]+\))?\s*:\s*([\s\S]+?)(?:\n\s*(?:đŸ“Ļ|👤|👨|━|â„šī¸|Target|Developer|To|Recipient|Receipt|Module|Body)|\n\s*\n|$)", 1903- text, 1904- re.I, 1905- ) 1906- 1907- if not (to_m and bod_m): 1908- return None, None 1909- 1910- num = re.sub(r"[^\d+]", "", to_m.group(1).strip()) 1911- if num.startswith("+"): 1912- num = num[1:] 1913- if num.startswith("91") and len(num) == 12: 1914- num = num[2:] 1915- return num, bod_m.group(1).strip() 1916- 1917- def _fcm_panel_headers(self, referer_suffix: str = "") -> dict[str, str]: 1918- base = "https://recovery2-32s.pages.dev" 1919- headers = { 1920- "Content-Type": "application/json", 1921- "Origin": base, 1922- "Accept": "*/*", 1923- "Accept-Language": "en-US,en;q=0.9", 1924- "User-Agent": "Mozilla/5.0 (Linux; Android 15; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Mobile Safari/537.36", 1925- "Sec-Ch-Ua": '"Not;A=Brand";v="8", "Chromium";v="150", "Google Chrome";v="150"', 1926- "Sec-Ch-Ua-Mobile": "?1", 1927- "Sec-Ch-Ua-Platform": '"Android"', 1928- "Sec-Fetch-Dest": "empty", 1929- "Sec-Fetch-Mode": "cors", 1930- "Sec-Fetch-Site": "same-origin", 1931- } 1932- if referer_suffix: 1933- headers["Referer"] = f"{base}/{referer_suffix}" 1934- return headers 1935- 1936- async def _fcm_auto_login(self, ws: Workspace) -> None: 1937- user_id = ws.user_id 1938- app_id = ws.fcm_app_id 1939- pin = ws.fcm_pin 1940- 1941- if not app_id or not pin: 1942- await self.send(user_id, fmt_msg("FCM Login Error", "App ID and PIN are required.", error=True)) 1943- return 1944- 1945- await self.send(user_id, fmt_msg("FCM Login", "🔄 **Step 1/2:** Verifying PIN...", success=False)) 1946- 1947- step1_headers = self._fcm_panel_headers("login") 1948- verify_url = f"https://recovery2-32s.pages.dev/api/apps/{app_id}/verify-pin" 1949- verify_payload = {"pin": pin, "panelToken": ""} 1950- 1951- try: 1952- if not self.http: 1953- await self.send(user_id, fmt_msg("FCM Login Error", "HTTP session not available.", error=True)) 1954- return 1955- async with self.http.post(verify_url, json=verify_payload, headers=step1_headers, timeout=10) as r: 1956- if r.status != 200: 1957- try: 1958- err_body = await r.json() 1959- except Exception: 1960- err_body = {"status": r.status} 1961- await self.send(user_id, fmt_msg("Wrong Password", f"📄 **Response:** `{err_body}`\n\nPIN verification failed. Check your App ID and PIN.", error=True), keyboard=self._workspace_menu(ws))