ChatMemberUpdated#

class aiogram.types.chat_member_updated.ChatMemberUpdated(*, chat: Chat, from_user: User, date: datetime.datetime, old_chat_member: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned], new_chat_member: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned], invite_link: Optional[ChatInviteLink] = None, **extra_data: Any)[source]#

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

Source: https://core.telegram.org/bots/api#chatmemberupdated

chat: Chat#

Chat the user belongs to

from_user: User#

Performer of the action, which resulted in the change

date: datetime.datetime#

Date the change was done in Unix time

old_chat_member: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]#

Previous information about the chat member

new_chat_member: Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]#

New information about the chat member

Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.