Package org.drinkless.tdlib
Class TdApi.AddContact
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.AddContact
-
- Enclosing class:
- TdApi
public static class TdApi.AddContact extends TdApi.Function
Adds a user to the contact list or edits an existing contact by their user identifier.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.ContactcontactThe contact to add or edit; phone number can be empty and needs to be specified only if known, vCard is ignored.booleansharePhoneNumberTrue, if the new contact needs to be allowed to see current user's phone number.
-
Constructor Summary
Constructors Constructor Description AddContact()Default constructor for a function, which adds a user to the contact list or edits an existing contact by their user identifier.AddContact(TdApi.Contact contact, boolean sharePhoneNumber)Creates a function, which adds a user to the contact list or edits an existing contact by their user identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
contact
public TdApi.Contact contact
The contact to add or edit; phone number can be empty and needs to be specified only if known, vCard is ignored.
-
sharePhoneNumber
public boolean sharePhoneNumber
True, if the new contact needs to be allowed to see current user's phone number. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field userFullInfo.needPhoneNumberPrivacyException to check whether the current user needs to be asked to share their phone number.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AddContact
public AddContact()
Default constructor for a function, which adds a user to the contact list or edits an existing contact by their user identifier.Returns
Ok
-
AddContact
public AddContact(TdApi.Contact contact, boolean sharePhoneNumber)
Creates a function, which adds a user to the contact list or edits an existing contact by their user identifier.Returns
Ok- Parameters:
contact- The contact to add or edit; phone number can be empty and needs to be specified only if known, vCard is ignored.sharePhoneNumber- True, if the new contact needs to be allowed to see current user's phone number. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field userFullInfo.needPhoneNumberPrivacyException to check whether the current user needs to be asked to share their phone number.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-