GetChatMessageCount class final

GetChatMessageCount (getChatMessageCount) - TDLib function

Returns approximate number of messages of the specified type in the chat.

  • 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.

Count is returned on completion.

Inheritance

Constructors

GetChatMessageCount({required int chatId, required SearchMessagesFilter filter, required int savedMessagesTopicId, required bool returnLocal})
GetChatMessageCount (getChatMessageCount) - TDLib function
const

Properties

chatId → int
Identifier of the chat in which to count messages
final
currentObjectId → String
TDLib object type for current class instance
no setteroverride
filter → SearchMessagesFilter
Filter for message content; searchMessagesFilterEmpty is unsupported in this function
final
hashCode → int
The hash code for this object.
no setterinherited
returnLocal → bool
Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
savedMessagesTopicId → int
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
final

Methods

copyWith({int? chatId, SearchMessagesFilter? filter, int? savedMessagesTopicId, bool? returnLocal}) → GetChatMessageCount
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type