- Enclosing class:
- TdApi
Returns approximate number of messages of the specified type in the
chat.
Returns Count
-
Field Summary
Modifier 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. -
Constructor Summary
ConstructorDescriptionReturns approximate number of messages of the specified type in the chat.GetChatMessageCount
(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal) Returns approximate number of messages of the specified type in the chat.GetChatMessageCount
(DataInput input) Returns approximate number of messages of the specified type in the chat. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which to count messages. -
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()Returns approximate number of messages of the specified type in the chat.Returns
Count
-
GetChatMessageCount
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
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-