ChatMemberUpdated class abstract
This object represents changes in the status of a chat member.
- Implemented types
- Available extensions
- Annotations
-
- @freezed
Constructors
- ChatMemberUpdated.new({@JsonKey(name: 'chat') required Chat chat, @JsonKey(name: 'from') required User from, @JsonKey(name: 'date') required int date, @JsonKey(name: 'old_chat_member') required ChatMember oldChatMember, @JsonKey(name: 'new_chat_member') required ChatMember newChatMember, @JsonKey(name: 'invite_link') ChatInviteLink? inviteLink, @JsonKey(name: 'via_chat_folder_invite_link') bool? viaChatFolderInviteLink, @JsonKey(name: 'via_join_request') bool? viaJoinRequest})
-
Creates a new ChatMemberUpdated object.
constfactory
-
ChatMemberUpdated.fromJson(Map<
String, dynamic> json) -
Creates a new ChatMemberUpdated object from json.
factory
Properties
- chat → Chat
-
Chat the user belongs to
no setterinherited
-
copyWith
→ $ChatMemberUpdatedCopyWith<
ChatMemberUpdated> -
Create a copy of ChatMemberUpdated
with the given fields replaced by the non-null parameter values.
no setterinherited
- date → int
-
Date the change was done in Unix time
no setterinherited
- dateTime → DateTime
-
Available on ChatMemberUpdated, provided by the ChatMemberUpdatedExt extension
Returns a DateTime object representing thedate
fieldno setter - from → User
-
Performer of the action, which resulted in the change
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inviteLink → ChatInviteLink?
-
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
no setterinherited
- newChatMember → ChatMember
-
New information about the chat member
no setterinherited
- oldChatMember → ChatMember
-
Previous information about the chat member
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viaChatFolderInviteLink → bool?
-
Optional. True, if the user joined the chat via a chat folder invite link
no setterinherited
- viaJoinRequest → bool?
-
Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ChatMemberUpdated to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited