• Send the confirmation code to the given phone number

    Parameters

    • client: ITelegramClient
    • params: {
          abortSignal?: AbortSignal;
          codeSettings?: Omit<RawCodeSettings, "_" | "logoutTokens">;
          futureAuthTokens?: Uint8Array[];
          phone: string;
      }
      • OptionalabortSignal?: AbortSignal

        Abort signal

      • OptionalcodeSettings?: Omit<RawCodeSettings, "_" | "logoutTokens">

        Additional code settings to pass to the server

      • OptionalfutureAuthTokens?: Uint8Array[]

        Saved future auth tokens, if any

      • phone: string

        Phone number in international format

    Returns Promise<SentCode>

    An object containing information about the sent confirmation code