Chat class



Chat({int id, ChatType type, String title, ChatPhotoInfo photo, ChatPermissions permissions, Message lastMessage, List<ChatPosition> positions, bool isMarkedAsUnread, bool isBlocked, bool hasScheduledMessages, bool canBeDeletedOnlyForSelf, bool canBeDeletedForAllUsers, bool canBeReported, bool defaultDisableNotification, int unreadCount, int lastReadInboxMessageId, int lastReadOutboxMessageId, int unreadMentionCount, ChatNotificationSettings notificationSettings, ChatActionBar actionBar, int voiceChatGroupCallId, bool isVoiceChatEmpty, int replyMarkupMessageId, DraftMessage draftMessage, String clientData})
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Chat.fromJson(Map<String, dynamic> json)
Parse from a json


actionBar ChatActionBar
actionBar Describes actions which should be possible to do through a chat action bar; may be null
read / write
canBeDeletedForAllUsers bool
canBeDeletedForAllUsers True, if the chat messages can be deleted for all users
read / write
canBeDeletedOnlyForSelf bool
canBeDeletedOnlyForSelf True, if the chat messages can be deleted only for the current user while other users will continue to see the messages
read / write
canBeReported bool
canBeReported True, if the chat can be reported to Telegram moderators through reportChat
read / write
clientData String
clientData Contains 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
defaultDisableNotification bool
defaultDisableNotification Default value of the disable_notification parameter, used when a message is sent to the chat
read / write
draftMessage DraftMessage
draftMessage A draft of a message in the chat; may be null
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasScheduledMessages bool
hasScheduledMessages True, if the chat has scheduled messages
read / write
id int
id Chat unique identifier
read / write
isBlocked bool
isBlocked True, if the chat is blocked by the current user and private messages from the chat can't be received
read / write
isMarkedAsUnread bool
isMarkedAsUnread True, if the chat is marked as unread
read / write
isVoiceChatEmpty bool
isVoiceChatEmpty True, if an active voice chat is empty
read / write
lastMessage Message
lastMessage Last message in the chat; may be null
read / write
lastReadInboxMessageId int
lastReadInboxMessageId Identifier of the last read incoming message
read / write
lastReadOutboxMessageId int
lastReadOutboxMessageId Identifier of the last read outgoing message
read / write
notificationSettings ChatNotificationSettings
notificationSettings Notification settings for this chat
read / write
permissions ChatPermissions
permissions Actions that non-administrator chat members are allowed to take in the chat
read / write
photo ChatPhotoInfo
photo Chat photo; may be null
read / write
positions List<ChatPosition>
positions Positions of the chat in chat lists
read / write
replyMarkupMessageId int
replyMarkupMessageId 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-only, inherited
title String
title Chat title
read / write
type ChatType
type Type of the chat
read / write
unreadCount int
unreadCount Number of unread messages in the chat
read / write
unreadMentionCount int
unreadMentionCount Number of unread messages with a mention/reply in the chat
read / write
voiceChatGroupCallId int
voiceChatGroupCallId Group call identifier of an active voice chat; 0 if none or unknown. The voice chat can be received through the method getGroupCall
read / write


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String