Chat class
This object represents a chat.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
- Chat({int? id, String? type, String? title, String? username, String? firstName, String? lastName, ChatPhoto? photo, String? description, String? inviteLink, Message? pinnedMessage, ChatPermissions? permissions, int? slowModeDelay, String? stickerSetName, bool? canSetStickerSet})
-
Chat.fromJson(Map<
String, dynamic> json) -
factory
Properties
- canSetStickerSet ↔ bool?
-
Optional. True, if the bot can change the group sticker set.
Returned only in
getChat.getter/setter pair - description ↔ String?
-
Optional. Description, for groups, supergroups and channel chats.
Returned only in
getChat.getter/setter pair - firstName ↔ String?
-
Optional. First name of the other party in a private chat.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
Unique identifier for this chat.
This number may be greater than 32 bits
and some programming languages may
have difficulty/silent defects in interpreting it.
But it is smaller than 52 bits, so a signed 64 bit integer or
double-precision float type are safe for storing this identifier.
getter/setter pair
- inviteLink ↔ String?
-
Optional. Chat invite link, for groups,
supergroups and channel chats.
Each administrator in a chat generates their own invite links,
so the bot must first generate the link using
exportChatInviteLink. Returned only ingetChat.getter/setter pair - lastName ↔ String?
-
Optional. Last name of the other party in a private chat.
getter/setter pair
- permissions ↔ ChatPermissions?
-
Optional. Default chat member permissions, for groups and supergroups.
Returned only in
getChat.getter/setter pair - photo ↔ ChatPhoto?
-
Optional. Chat photo. Returned only in
getChat.getter/setter pair - pinnedMessage ↔ Message?
-
Optional. Pinned message, for groups, supergroups and channels.
Returned only in
getChat.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slowModeDelay ↔ int?
-
Optional. For supergroups,
the minimum allowed delay between consecutive messages sent by each
unpriviledged user. Returned only in
getChat.getter/setter pair - stickerSetName ↔ String?
-
Optional. For supergroups, name of group sticker set.
Returned only in
getChat.getter/setter pair - title ↔ String?
-
Optional. Title, for supergroups, channels and group chats.
getter/setter pair
- type ↔ String?
-
Type of chat, can be either “private”, “group”, “supergroup” or “channel”.
getter/setter pair
- username ↔ String?
-
Optional. Username, for private chats, supergroups and channels
if available.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited