public static class TdApi.GetChatMessageCount extends TdApi.Function<TdApi.Count>
Returns Count
| 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
Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.
|
long |
savedMessagesTopicId
If not 0, only messages in the specified Saved Messages topic will be counted; pass 0 to count all messages, or for chats other than Saved Messages.
|
| 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,
long savedMessagesTopicId,
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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public TdApi.SearchMessagesFilter filter
public long savedMessagesTopicId
public boolean returnLocal
public static final int CONSTRUCTOR
public GetChatMessageCount()
Returns Count
public GetChatMessageCount(long chatId,
TdApi.SearchMessagesFilter filter,
long savedMessagesTopicId,
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.savedMessagesTopicId - If not 0, only messages in the specified Saved Messages topic will be counted; pass 0 to count all messages, or for chats other than Saved Messages.returnLocal - Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object