Class TdApi.SendPhoneNumberVerificationCode

  • Enclosing class:
    TdApi

    public static class TdApi.SendPhoneNumberVerificationCode
    extends TdApi.Function
    Sends a code to verify a phone number to be added to a user's Telegram Passport.

    Returns AuthenticationCodeInfo

    • Field Detail

      • phoneNumber

        public String phoneNumber
        The phone number of the user, in international format.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendPhoneNumberVerificationCode

        public SendPhoneNumberVerificationCode()
        Default constructor for a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.

        Returns AuthenticationCodeInfo

      • SendPhoneNumberVerificationCode

        public SendPhoneNumberVerificationCode​(String phoneNumber,
                                               TdApi.PhoneNumberAuthenticationSettings settings)
        Creates a function, which sends a code to verify a phone number to be added to a user's Telegram Passport.

        Returns AuthenticationCodeInfo

        Parameters:
        phoneNumber - The phone number of the user, in international format.
        settings - Settings for the authentication of the user's phone number; pass null to use default settings.