Module tdlight.api

Class TdApi.GetChatMessageCount

Enclosing class:
TdApi

public static final class TdApi.GetChatMessageCount extends TdApi.Function<TdApi.Count>
Returns approximate number of messages of the specified type in the chat.

Returns Count

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat in which to count messages.
    • filter

      Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
    • returnLocal

      public boolean returnLocal
      Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetChatMessageCount

      public GetChatMessageCount()
      Returns approximate number of messages of the specified type in the chat.

      Returns Count

    • GetChatMessageCount

      public GetChatMessageCount(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)
      Returns approximate number of messages of the specified type in the chat.

      Returns Count

      Parameters:
      chatId - Identifier of the chat in which to count messages.
      filter - Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
      returnLocal - Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.

      Returns Count

    • GetChatMessageCount

      public GetChatMessageCount(DataInput input) throws IOException
      Returns approximate number of messages of the specified type in the chat.

      Returns Count

      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object