GetChatMessageCounts class
Returns approximate numbers of messages of the specified types in the chat or its topic Returns ChatMessageCounts
- Inheritance
-
- Object
- TdFunction
- GetChatMessageCounts
- Available extensions
- Annotations
-
- @immutable
Constructors
-
GetChatMessageCounts({required int chatId, MessageTopic? topicId, required List<
SearchMessagesFilter> filters, required bool returnLocal}) -
const
Properties
- chatId → int
-
chatId Identifier of the chat in which to count messages
final
-
filters
→ List<
SearchMessagesFilter> -
filters Filters for message content; searchMessagesFilterEmpty is
unsupported in this function
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- returnLocal → bool
-
returnLocal Pass true to get the numbers of messages without sending
network requests; -1 is returned for the numbers of messages, which are
unknown locally
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topicId → MessageTopic?
-
topicId Pass a topic identifier to get the numbers of messages only in a
specific topic; pass null to get the numbers of messages in all topics;
message threads aren't supported
final
Methods
-
copyWith(
{int? chatId, MessageTopic? topicId, List< SearchMessagesFilter> ? filters, bool? returnLocal}) → GetChatMessageCounts -
Available on GetChatMessageCounts, provided by the GetChatMessageCountsExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String