• Re-send the confirmation code using a different type.

    The type of the code to be re-sent is specified in the nextType attribute of SentCode object returned by sendCode

    Parameters

    • client: ITelegramClient
    • params: { abortSignal?: AbortSignal; phone: string; phoneCodeHash: string }
      • OptionalabortSignal?: AbortSignal

        Abort signal

      • phone: string

        Phone number in international format

      • phoneCodeHash: string

        Confirmation code identifier from SentCode

    Returns Promise<SentCode>