ChatMemberUpdated class

This object represents changes in the status of a chat member.

Implemented types

Constructors

ChatMemberUpdated({required Chat chat, required User from, required int date, required ChatMember oldChatMember, required ChatMember newChatMember, ChatInviteLink? inviteLink, bool? viaChatFolderInviteLink, bool? viaJoinRequest})
Creates a new ChatMemberUpdated object.
const
ChatMemberUpdated.fromJson(Map<String, dynamic> json)
Creates a new ChatMemberUpdated object from json.
factory

Properties

chat Chat
Chat the user belongs to
final
date int
Date the change was done in Unix time
final
dateTime DateTime
Returns a DateTime object representing the date field
no setter
from User
Performer of the action, which resulted in the change
final
hashCode int
The hash code for this object.
no setterinherited
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
final
newChatMember ChatMember
New information about the chat member
final
oldChatMember ChatMember
Previous information about the chat member
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Optional. True, if the user joined the chat via a chat folder invite link
final
viaJoinRequest bool?
Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a ChatMemberUpdated to a Map for JSON encoding.
toString() String
A string representation of this object.
inherited

Operators

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