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
      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 - long Identifier of the chat in which to count messages.
      filter - SearchMessagesFilter Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
      returnLocal - boolean Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.
    • GetChatMessageCount

      public GetChatMessageCount(DataInput input) throws IOException
      Returns approximate number of messages of the specified type in the chat. Returns Count
      Throws:
      IOException
  • Method Details