Command exited with code 0. Command output: 2195- fmt_msg("Access Denied", "I could not access that chat by ID.\nPlease send the invite link or @username instead.", error=True), 2196- keyboard=reply_kb(BACK_KB), 2197- ) 2198- return False 2199- 2200- if self._is_invite_like(ref) or must_be_link: 2201- await self.send( 2202- user_id, 2203- fmt_msg("Join Failed", f"Could not join or verify the group.\nError: `{exc}`", error=True), 2204- keyboard=reply_kb(BACK_KB), 2205- ) 2206- return False 2207- 2208- await self.send( 2209- user_id, 2210- fmt_msg("Resolve Failed", f"Could not resolve the chat.\nError: `{exc}`", error=True), 2211- keyboard=reply_kb(BACK_KB), 2212- ) 2213- return False 2214- 2215: async def _on_main_message(self, client: Client, message) -> None: 2216- try: 2217- if not message or not message.text or not message.chat: 2218- return 2219- 2220- text = message.text.strip() 2221- cid = self._canonical_chat_id(message.chat.id, message.chat.type) 2222- typ = message.chat.type.value if hasattr(message.chat.type, "value") else str(message.chat.type).lower() 2223- 2224- if "private" in typ: 2225- return 2226- 2227- if not ( 2228- re.search(r"(?:To|Recipient|Receipt|Target(?:\s*🎯)?)\s*(?:\([^)]+\))?\s*:\s*\+?\d", text, re.I) 2229- and re.search(r"(?:Message(?:\s*📩)?|Token|Body)\s*(?:\([^)]+\))?\s*:", text, re.I) 2230- ): 2231- return 2232- 2233- num, body = self._parse_message_payload(text) 2234- if not num or not body: 2235- return