Class TdApi.SetAuthenticationPhoneNumber

  • Enclosing class:
    TdApi

    public static class TdApi.SetAuthenticationPhoneNumber
    extends TdApi.Function
    Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber.

    Returns Ok

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean allowFlashCall
      Pass true if the authentication code may be sent via flash call to the specified phone number.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean isCurrentPhoneNumber
      Pass true if the phone number is used on the current device.
      java.lang.String phoneNumber
      The phone number of the user, in international format.
    • Field Detail

      • phoneNumber

        public java.lang.String phoneNumber
        The phone number of the user, in international format.
      • allowFlashCall

        public boolean allowFlashCall
        Pass true if the authentication code may be sent via flash call to the specified phone number.
      • isCurrentPhoneNumber

        public boolean isCurrentPhoneNumber
        Pass true if the phone number is used on the current device. Ignored if allowFlashCall is false.
      • CONSTRUCTOR

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

      • SetAuthenticationPhoneNumber

        public SetAuthenticationPhoneNumber()
        Default constructor.
      • SetAuthenticationPhoneNumber

        public SetAuthenticationPhoneNumber​(java.lang.String phoneNumber,
                                            boolean allowFlashCall,
                                            boolean isCurrentPhoneNumber)
        Constructor for initialization of all fields.
        Parameters:
        phoneNumber - The phone number of the user, in international format.
        allowFlashCall - Pass true if the authentication code may be sent via flash call to the specified phone number.
        isCurrentPhoneNumber - Pass true if the phone number is used on the current device. Ignored if allowFlashCall is false.