- 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
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
Methods 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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
GetChatMessageCount
public GetChatMessageCount()Returns approximate number of messages of the specified type in the chat. ReturnsCount
-
GetChatMessageCount
Returns approximate number of messages of the specified type in the chat. ReturnsCount
- 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
Returns approximate number of messages of the specified type in the chat. ReturnsCount
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-