public static class TdApi.AddContact extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.Contact |
contact
The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored.
|
boolean |
sharePhoneNumber
Pass true to share the current user's phone number with the new contact.
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.Contact contact
public boolean sharePhoneNumber
public static final int CONSTRUCTOR
public AddContact()
Returns Ok
public AddContact(TdApi.Contact contact, boolean sharePhoneNumber)
Returns Ok
contact - The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored.sharePhoneNumber - 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object