Package org.drinkless.tdlib
Class TdApi.GetChatMessageCount
- Enclosing class:
- TdApi
Returns approximate number of messages of the specified type in the chat or its topic.
Returns Count
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat in which to count messages.static final int
Identifier uniquely determining type of the object.Filter for message content; searchMessagesFilterEmpty is unsupported in this function.boolean
Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.Pass topic identifier to get number of messages only in specific topic; pass null to get number of messages in all topics. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns approximate number of messages of the specified type in the chat or its topic.GetChatMessageCount
(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, boolean returnLocal) Creates a function, which returns approximate number of messages of the specified type in the chat or its topic. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which to count messages. -
topicId
Pass topic identifier to get number of messages only in specific topic; pass null to get number of messages in all topics. -
filter
Filter for message content; searchMessagesFilterEmpty is unsupported in this function. -
returnLocal
public boolean returnLocalPass 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatMessageCount
public GetChatMessageCount()Default constructor for a function, which returns approximate number of messages of the specified type in the chat or its topic.Returns
Count
-
GetChatMessageCount
public GetChatMessageCount(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, boolean returnLocal) Creates a function, which returns approximate number of messages of the specified type in the chat or its topic.Returns
Count
- Parameters:
chatId
- Identifier of the chat in which to count messages.topicId
- Pass topic identifier to get number of messages only in specific topic; pass null to get number of messages in all topics.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.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-