DirectMessagesChatTopic class final

Contains information about a topic in a channel direct messages chat administered by the current user

Inheritance

Constructors

DirectMessagesChatTopic({required int chatId, required int id, required MessageSender senderId, required int order, required bool canSendUnpaidMessages, required bool isMarkedAsUnread, required int unreadCount, required int lastReadInboxMessageId, required int lastReadOutboxMessageId, required int unreadReactionCount, Message? lastMessage, DraftMessage? draftMessage, dynamic extra, int? clientId})
Contains information about a topic in a channel direct messages chat administered by the current user
const
DirectMessagesChatTopic.fromJson(Map<String, dynamic> json)
Parses a DirectMessagesChatTopic from TDLib JSON.
factory

Properties

canSendUnpaidMessages → bool
True, if the other party can send unpaid messages even if the chat has paid messages enabled
final
chatId → int
Identifier of the chat to which the topic belongs
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
draftMessage → DraftMessage?
A draft of a message in the topic; 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
id → int
Unique topic identifier
final
isMarkedAsUnread → bool
True, if the topic is marked as unread
final
lastMessage → Message?
Last message in the topic; may be null if none or unknown
final
lastReadInboxMessageId → int
Identifier of the last read incoming message
final
lastReadOutboxMessageId → int
Identifier of the last read outgoing message
final
order → int
A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
senderId → MessageSender
Identifier of the user or chat that sends the messages to the topic
final
unreadCount → int
Number of unread messages in the chat
final
unreadReactionCount → int
Number of messages with unread reactions in the chat
final

Methods

copyWith({int? chatId, int? id, MessageSender? senderId, int? order, bool? canSendUnpaidMessages, bool? isMarkedAsUnread, int? unreadCount, int? lastReadInboxMessageId, int? lastReadOutboxMessageId, int? unreadReactionCount, Message? lastMessage()?, DraftMessage? draftMessage()?, dynamic extra, int? clientId}) → DirectMessagesChatTopic
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.