public static class TdApi.CanSendMessageToUser extends TdApi.Function<TdApi.CanSendMessageToUserResult>
Returns CanSendMessageToUserResult
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
onlyLocal
Pass true to get only locally available information without sending network requests.
|
long |
userId
Identifier of the other user.
|
| Constructor and Description |
|---|
CanSendMessageToUser()
Default constructor for a function, which check whether the current user can message another user or try to create a chat with them.
|
CanSendMessageToUser(long userId,
boolean onlyLocal)
Creates a function, which check whether the current user can message another user or try to create a chat with them.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public boolean onlyLocal
public static final int CONSTRUCTOR
public CanSendMessageToUser()
Returns CanSendMessageToUserResult
public CanSendMessageToUser(long userId,
boolean onlyLocal)
Returns CanSendMessageToUserResult
userId - Identifier of the other user.onlyLocal - Pass true to get only locally available information without sending network requests.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object