public static class TdApi.AddContact extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
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 can be empty and needs to be specified only if known, vCard is ignored.
|
boolean |
sharePhoneNumber
True, if the new contact needs to be allowed to see current user's phone number.
|
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() |
toString
public 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 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.public int getConstructor()
getConstructor
in class TdApi.Function