• Join a channel or supergroup

    When using with invite links, this method may throw RPC error INVITE_REQUEST_SENT, which means that you need to wait for admin approval. You will get into the chat once they do so.

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      Chat identifier. Either an invite link (t.me/joinchat/*), a username (@username) or ID of the linked supergroup or channel.

    Returns Promise<Chat>