Package org.drinkless.tdlib
Class TdApi.GetChatMessageCount
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetChatMessageCount
-
- Enclosing class:
- TdApi
public static class TdApi.GetChatMessageCount extends TdApi.Function
Returns approximate number of messages of the specified type in the chat.Returns
Count
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdIdentifier of the chat in which to count messages.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.SearchMessagesFilterfilterFilter for message content; searchMessagesFilterEmpty is unsupported in this function.booleanreturnLocalIf true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown.
-
Constructor Summary
Constructors Constructor Description GetChatMessageCount()Default constructor for a function, which returns approximate number of messages of the specified type in the chat.GetChatMessageCount(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)Creates a function, which returns approximate number of messages of the specified type in the chat.
-
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
Identifier of the chat in which to count messages.
-
filter
public TdApi.SearchMessagesFilter filter
Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
-
returnLocal
public boolean returnLocal
If true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetChatMessageCount
public GetChatMessageCount()
Default constructor for a function, which returns approximate number of messages of the specified type in the chat.Returns
Count
-
GetChatMessageCount
public GetChatMessageCount(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)Creates a function, which 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- If true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-