Command exited with code 0. Command output: 2046- try: 2047- if re.fullmatch(r"-?\d+", ref): 2048- chat = await self.main_client.get_chat(int(ref)) 2049- elif self._is_invite_like(ref): 2050- try: 2051: chat = await self.main_client.join_chat(ref) 2052- except Exception as join_exc: 2053- invite_hash = self._extract_invite_hash(ref) 2054- if invite_hash and "user_already_participant" in str(join_exc).lower(): 2055- invite = await self.main_client.invoke(CheckChatInvite(hash=invite_hash)) 2056- if isinstance(invite, ChatInviteAlready): -- 2074- else: 2075- raise join_exc 2076- else: 2077- target = self._normalize_username_ref(ref) 2078- try: 2079: chat = await self.main_client.join_chat(target) 2080- except Exception: 2081- chat = await self.main_client.get_chat(target) 2082- 2083- if not chat or not getattr(chat, "id", None): 2084- raise RuntimeError("Could not resolve chat")