public static class TdApi.GetChatMessageCount extends TdApi.Function
Returns Count
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the chat in which to count messages.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.SearchMessagesFilter |
filter
Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
|
boolean |
returnLocal
If true, returns count that is available locally without sending network requests, returning -1 if the number of messages is unknown.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public TdApi.SearchMessagesFilter filter
public boolean returnLocal
public static final int CONSTRUCTOR
public GetChatMessageCount()
Returns Count
public GetChatMessageCount(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)
Returns Count
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.public int getConstructor()
getConstructor
in class TdApi.Function