- Enclosing class:
- TdApi
Adds a user to the contact list or
edits an existing contact by their user identifier.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored.booleanPass true to share the current user's phone number with the new contact. -
Constructor Summary
ConstructorsConstructorDescriptionAdds a user to the contact list or edits an existing contact by their user identifier.AddContact(TdApi.Contact contact, boolean sharePhoneNumber) Adds a user to the contact list or edits an existing contact by their user identifier.AddContact(DataInput input) Adds a user to the contact list or edits an existing contact by their user identifier. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toStringMethods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
contact
The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AddContact
public AddContact()Adds a user to the contact list or edits an existing contact by their user identifier. ReturnsOk -
AddContact
Adds a user to the contact list or edits an existing contact by their user identifier. ReturnsOk- Parameters:
contact- Contact The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored.sharePhoneNumber- boolean Pass true to share the current user's phone number with the new contact. 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.
-
AddContact
Adds a user to the contact list or edits an existing contact by their user identifier. ReturnsOk- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-