Class TdApi.CanSendMessageToUser
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.CanSendMessageToUserResult>
dev.voroby.springframework.telegram.client.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
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to get only locally available information without sending network requests.long
Identifier of the other user. -
Constructor Summary
ConstructorDescriptionDefault 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-