public static class TdApi.ViewMessages extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
forceRead
Pass true to mark as read the specified messages even the chat is closed.
|
long[] |
messageIds
The identifiers of the messages being viewed.
|
TdApi.MessageSource |
source
Source of the message view; pass null to guess the source based on chat open state.
|
| Constructor and Description |
|---|
ViewMessages()
Default constructor for a function, which informs TDLib that messages are being viewed by the user.
|
ViewMessages(long chatId,
long[] messageIds,
TdApi.MessageSource source,
boolean forceRead)
Creates a function, which informs TDLib that messages are being viewed by the user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long[] messageIds
public TdApi.MessageSource source
public boolean forceRead
public static final int CONSTRUCTOR
public ViewMessages()
Returns Ok
public ViewMessages(long chatId,
long[] messageIds,
TdApi.MessageSource source,
boolean forceRead)
Returns Ok
chatId - Chat identifier.messageIds - The identifiers of the messages being viewed.source - Source of the message view; pass null to guess the source based on chat open state.forceRead - Pass true to mark as read the specified messages even the chat is closed.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object