Chat class

A chat. (Can be a private chat, basic group, supergroup, or secret chat)

Inheritance

Constructors

Chat({String? extra, int? client_id, int53? id, ChatType? type, string? title, ChatPhotoInfo? photo, ChatPermissions? permissions, Message? last_message, vector<ChatPosition>? positions, MessageSender? message_sender_id, Bool? has_protected_content, Bool? is_marked_as_unread, Bool? is_blocked, Bool? has_scheduled_messages, Bool? can_be_deleted_only_for_self, Bool? can_be_deleted_for_all_users, Bool? can_be_reported, Bool? default_disable_notification, int32? unread_count, int53? last_read_inbox_message_id, int53? last_read_outbox_message_id, int32? unread_mention_count, int32? unread_reaction_count, ChatNotificationSettings? notification_settings, ChatAvailableReactions? available_reactions, int32? message_auto_delete_time, string? theme_name, ChatActionBar? action_bar, VideoChat? video_chat, ChatJoinRequestsInfo? pending_join_requests, int53? reply_markup_message_id, DraftMessage? draft_message, string? client_data})
Chat.fromMap(Map<String, dynamic> map)

Properties

action_bar ChatActionBar?
Information about actions which must be possible to do through the chat action bar; may be null
getter/setter pair
available_reactions ChatAvailableReactions?
Types of reaction, available in the chat
getter/setter pair
can_be_deleted_for_all_users Bool?
True, if the chat messages can be deleted for all users
getter/setter pair
can_be_deleted_only_for_self Bool?
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages
getter/setter pair
can_be_reported Bool?
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto
getter/setter pair
client_data string?
Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
default_disable_notification Bool?
Default value of the disable_notification parameter, used when a message is sent to the chat
getter/setter pair
draft_message DraftMessage?
A draft of a message in the chat; may be null
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
has_protected_content Bool?
True, if chat content can't be saved locally, forwarded, or copied
getter/setter pair
has_scheduled_messages Bool?
True, if the chat has scheduled messages
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int53?
Chat unique identifier
getter/setter pair
is_blocked Bool?
True, if the chat is blocked by the current user and private messages from the chat can't be received
getter/setter pair
is_marked_as_unread Bool?
True, if the chat is marked as unread
getter/setter pair
last_message Message?
Last message in the chat; may be null
getter/setter pair
last_read_inbox_message_id int53?
Identifier of the last read incoming message
getter/setter pair
last_read_outbox_message_id int53?
Identifier of the last read outgoing message
getter/setter pair
message_auto_delete_time int32?
Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date
getter/setter pair
message_sender_id MessageSender?
Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender
getter/setter pair
notification_settings ChatNotificationSettings?
Notification settings for the chat
getter/setter pair
pending_join_requests ChatJoinRequestsInfo?
Information about pending join requests; may be null
getter/setter pair
permissions ChatPermissions?
Actions that non-administrator chat members are allowed to take in the chat
getter/setter pair
photo ChatPhotoInfo?
Chat photo; may be null
getter/setter pair
positions vector<ChatPosition>?
Positions of the chat in chat lists
getter/setter pair
reply_markup_message_id int53?
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tdType String
JSON object type; maps to the field @type.
no setteroverride
theme_name string?
If non-empty, name of a theme, set for the chat
getter/setter pair
title string?
Chat title
getter/setter pair
type ChatType?
Type of the chat
getter/setter pair
unread_count int32?
Number of unread messages in the chat
getter/setter pair
unread_mention_count int32?
Number of unread messages with a mention/reply in the chat
getter/setter pair
unread_reaction_count int32?
Number of messages with unread reactions in the chat
getter/setter pair
video_chat VideoChat?
Information about video chat of the chat
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

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