Class 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
      long chatId
      Chat identifier.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean forceRead
      True, if messages in closed chats must be marked as read by the request.
      long[] messageIds
      The identifiers of the messages being viewed.
      long messageThreadId
      If 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.
    • 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.