MessageThreadInfo class final

Contains information about a message thread

Inheritance

Constructors

MessageThreadInfo({required int chatId, required int messageThreadId, MessageReplyInfo? replyInfo, required int unreadMessageCount, required List<Message> messages, DraftMessage? draftMessage, dynamic extra, int? clientId})
Contains information about a message thread
const
MessageThreadInfo.fromJson(Map<String, dynamic> json)
Parses a MessageThreadInfo from TDLib JSON.
factory

Properties

chatId → int
Identifier of the chat to which the message thread belongs
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
draftMessage → DraftMessage?
A draft of a message in the message thread; may be null if none
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
messages → List<Message>
The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)
final
messageThreadId → int
Message thread identifier, unique within the chat
final
replyInfo → MessageReplyInfo?
Information about the message thread; may be null for forum topic threads
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unreadMessageCount → int
Approximate number of unread messages in the message thread
final

Methods

copyWith({int? chatId, int? messageThreadId, MessageReplyInfo? replyInfo()?, int? unreadMessageCount, List<Message>? messages, DraftMessage? draftMessage()?, dynamic extra, int? clientId}) → MessageThreadInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.