Chat class
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
- Inheritance
- Available Extensions
Constructors
-
Chat({required int id, required ChatType type, required String title, ChatPhotoInfo? photo, required ChatPermissions permissions, Message? last_message, required List<
ChatPosition> positions, MessageSender? message_sender_id, BlockList? block_list, required bool has_protected_content, required bool is_translatable, required bool is_marked_as_unread, required bool has_scheduled_messages, required bool can_be_deleted_only_for_self, required bool can_be_deleted_for_all_users, required bool can_be_reported, required bool default_disable_notification, required int unread_count, required int last_read_inbox_message_id, required int last_read_outbox_message_id, required int unread_mention_count, required int unread_reaction_count, required ChatNotificationSettings notification_settings, required ChatAvailableReactions available_reactions, required int message_auto_delete_time, ChatBackground? background, required String theme_name, ChatActionBar? action_bar, required VideoChat video_chat, ChatJoinRequestsInfo? pending_join_requests, required int reply_markup_message_id, DraftMessage? draft_message, required String client_data, int? extra, int? clientId}) - A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Properties
- action_bar ↔ ChatActionBar?
-
Information about actions which must be possible to do through the chat action bar; may be null if none.
read / write
- available_reactions ↔ ChatAvailableReactions
-
Types of reaction, available in the chat.
read / write
- background ↔ ChatBackground?
-
Background set for the chat; may be null if none.
read / write
- block_list ↔ BlockList?
-
Block list to which the chat is added; may be null if none.
read / write
- can_be_deleted_for_all_users ↔ bool
-
True, if the chat messages can be deleted for all users.
read / write
- 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.
read / write
- can_be_reported ↔ bool
-
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
read / write
- 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.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- default_disable_notification ↔ bool
-
Default value of the disable_notification parameter, used when a message is sent to the chat.
read / write
- draft_message ↔ DraftMessage?
-
A draft of a message in the chat; may be null if none.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- has_protected_content ↔ bool
-
True, if chat content can't be saved locally, forwarded, or copied.
read / write
- has_scheduled_messages ↔ bool
-
True, if the chat has scheduled messages.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ int
-
Chat unique identifier.
read / write
- is_marked_as_unread ↔ bool
-
True, if the chat is marked as unread.
read / write
- is_translatable ↔ bool
-
True, if translation of all messages in the chat must be suggested to the user.
read / write
- last_message ↔ Message?
-
Last message in the chat; may be null if none or unknown.
read / write
- last_read_inbox_message_id ↔ int
-
Identifier of the last read incoming message.
read / write
- last_read_outbox_message_id ↔ int
-
Identifier of the last read outgoing message.
read / write
- message_auto_delete_time ↔ int
-
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.
read / write
- 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.
read / write
- notification_settings ↔ ChatNotificationSettings
-
Notification settings for the chat.
read / write
- pending_join_requests ↔ ChatJoinRequestsInfo?
-
Information about pending join requests; may be null if none.
read / write
- permissions ↔ ChatPermissions
-
Actions that non-administrator chat members are allowed to take in the chat.
read / write
- photo ↔ ChatPhotoInfo?
-
Chat photo; may be null.
read / write
-
positions
↔ List<
ChatPosition> -
Positions of the chat in chat lists.
read / write
- reply_markup_message_id ↔ int
-
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- theme_name ↔ String
-
If non-empty, name of a theme, set for the chat.
read / write
- title ↔ String
-
Chat title.
read / write
- type ↔ ChatType
-
Type of the chat.
read / write
- unread_count ↔ int
-
Number of unread messages in the chat.
read / write
- unread_mention_count ↔ int
-
Number of unread messages with a mention/reply in the chat.
read / write
- unread_reaction_count ↔ int
-
Number of messages with unread reactions in the chat.
read / write
- video_chat ↔ VideoChat
-
Information about video chat of the chat.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- CONSTRUCTOR → const String
-
@type
"chat"