Package org.drinkless.tdlib
Class TdApi.CanSendMessageToUser
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.CanSendMessageToUserResult>
org.drinkless.tdlib.TdApi.CanSendMessageToUser
- Enclosing class:
- TdApi
public static class TdApi.CanSendMessageToUser
extends TdApi.Function<TdApi.CanSendMessageToUserResult>
Check whether the current user can message another user or try to create a chat with them.
Returns CanSendMessageToUserResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanPass true to get only locally available information without sending network requests.longIdentifier of the other user. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
userId
public long userIdIdentifier of the other user. -
onlyLocal
public boolean onlyLocalPass true to get only locally available information without sending network requests. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CanSendMessageToUser
public CanSendMessageToUser()Default constructor for a function, which check whether the current user can message another user or try to create a chat with them.Returns
CanSendMessageToUserResult -
CanSendMessageToUser
public 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.Returns
CanSendMessageToUserResult- Parameters:
userId- Identifier of the other user.onlyLocal- Pass true to get only locally available information without sending network requests.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-