java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.CanSendMessageToUserResult>
it.tdlight.jni.TdApi.CanSendMessageToUser
- Enclosing class:
- TdApi
public static final 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
ConstructorDescriptionCheck whether the current user can message another user or try to create a chat with them.CanSendMessageToUser
(long userId, boolean onlyLocal) Check whether the current user can message another user or try to create a chat with them.CanSendMessageToUser
(DataInput input) Check whether the current user can message another user or try to create a chat with them. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
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()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) 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.Returns
CanSendMessageToUserResult
-
CanSendMessageToUser
Check whether the current user can message another user or try to create a chat with them.Returns
CanSendMessageToUserResult
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-