class ChatMemberUpdated

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

Methods

__construct(Chat $chat, User $from, int $date, ChatMemberInterface $old_chat_member, ChatMemberInterface $new_chat_member, ChatInviteLink|null $invite_link = null)

No description

getChat()

Chat the user belongs to.

getFrom()

Performer of the action, which resulted in the change.

int
getDate()

Date the change was done in Unix time.

getOldChatMember()

Previous information about the chat member.

getNewChatMember()

New information about the chat member.

ChatInviteLink|null
getInviteLink()

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

Details

at line 18
__construct(Chat $chat, User $from, int $date, ChatMemberInterface $old_chat_member, ChatMemberInterface $new_chat_member, ChatInviteLink|null $invite_link = null)

No description

Parameters

Chat $chat
User $from
int $date
ChatMemberInterface $old_chat_member
ChatMemberInterface $new_chat_member
ChatInviteLink|null $invite_link

at line 31
Chat getChat()

Chat the user belongs to.

Return Value

Chat

at line 39
User getFrom()

Performer of the action, which resulted in the change.

Return Value

User

at line 47
int getDate()

Date the change was done in Unix time.

Return Value

int

at line 55
ChatMemberInterface getOldChatMember()

Previous information about the chat member.

Return Value

ChatMemberInterface

at line 63
ChatMemberInterface getNewChatMember()

New information about the chat member.

Return Value

ChatMemberInterface

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

Return Value

ChatInviteLink|null