get_chat_message_count


Description:

public async Count get_chat_message_count (int64 chat_id, MessageTopic topic_id, SearchMessagesFilter filter, bool return_local) throws TDLibError

Returns approximate number of messages of the specified type in the chat or its topic

Parameters:

chat_id

Identifier of the chat in which to count messages

topic_id

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

return_local

Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally