Identifier of the chat in which to count messages.
Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
Optional return_Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally.
Pass a topic identifier to get the number of messages only in a specific topic; pass null to get the number of messages in all topics; message threads aren't supported.
Returns the approximate number of messages of the specified type in the chat or its topic. Request type for Tdjson#getChatMessageCount.