• Recover your password with a recovery code and log in.

    Parameters

    • client: ITelegramClient
    • params: { recoveryCode: string }
      • recoveryCode: string

        The recovery code sent via email

    Returns Promise<User>

    The authorized user

    BadRequestError In case the code is invalid