Package org.drinkless.tdlib
Class TdApi.ViewMessages
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.ViewMessages
-
- Enclosing class:
- TdApi
public static class TdApi.ViewMessages extends TdApi.Function
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanforceReadTrue, if messages in closed chats must be marked as read by the request.long[]messageIdsThe identifiers of the messages being viewed.longmessageThreadIdIf not 0, a message thread identifier in which the messages are being viewed.
-
Constructor Summary
Constructors Constructor Description ViewMessages()Default constructor for a function, which informs TDLib that messages are being viewed by the user.ViewMessages(long chatId, long messageThreadId, long[] messageIds, boolean forceRead)Creates a function, which informs TDLib that messages are being viewed by the user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
messageThreadId
public long messageThreadId
If not 0, a message thread identifier in which the messages are being viewed.
-
messageIds
public long[] messageIds
The identifiers of the messages being viewed.
-
forceRead
public boolean forceRead
True, if messages in closed chats must be marked as read by the request.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ViewMessages
public ViewMessages()
Default constructor for a function, which informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).Returns
Ok
-
ViewMessages
public ViewMessages(long chatId, long messageThreadId, long[] messageIds, boolean forceRead)Creates a function, which informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).Returns
Ok- Parameters:
chatId- Chat identifier.messageThreadId- If not 0, a message thread identifier in which the messages are being viewed.messageIds- The identifiers of the messages being viewed.forceRead- True, if messages in closed chats must be marked as read by the request.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-