Command exited with code 0. Command output: if ref.startswith("+") or ref.startswith("joinchat/") or ref.startswith("tg://"): return ref return f"@{ref}" async def _poll_invite_approval(self, ws: Workspace, ref: str, invite_hash: str) -> None: user_id = ws.user_id max_attempts = 18 # 18 * 10s = 3 minutes for attempt in range(max_attempts): await asyncio.sleep(10) try: invite = await self.main_client.invoke(CheckChatInvite(hash=invite_hash)) if isinstance(invite, ChatInviteAlready): chat = invite.chat chat_id = self._canonical_chat_id(chat.id, getattr(chat, "type", None)) group_name = self._group_key_from_chat(chat) ws = self.load_workspace(user_id) group_name = self._unique_group_name(ws, group_name, chat_id) ws.saved_groups[group_name] = chat_id ws.group_id = chat_id self.save_workspace(ws) await self.send( user_id, fmt_msg("Group Approved & Added", f"āœ… **Request Approved!**\n\nšŸ“” **Name:** `{group_name}`\nšŸ†” **ID:** `{chat_id}`", success=True), keyboard=self._workspace_menu(ws), ) return except Exception as exc: log(f"[poll invite] Error checking invite {invite_hash} for {user_id}: {exc}") ws = self.load_workspace(user_id) await self.send( user_id, fmt_msg( "Approval Timeout", "ā± **Join Request Timeout**\n\nAdmin didn't approve the request within 3 minutes.\nOnce they approve it, simply add the group again using the same link.", error=True ), keyboard=self._workspace_menu(ws),