public static class TdApi.SharePhoneNumber extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
userId
Identifier of the user with whom to share the phone number.
|
| Constructor and Description |
|---|
SharePhoneNumber()
Default constructor for a function, which shares the phone number of the current user with a mutual contact.
|
SharePhoneNumber(long userId)
Creates a function, which shares the phone number of the current user with a mutual contact.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public static final int CONSTRUCTOR
public SharePhoneNumber()
Returns Ok
public SharePhoneNumber(long userId)
Returns Ok
userId - Identifier of the user with whom to share the phone number. The user must be a mutual contact.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object