Skip to content

class Tourmaline::ChatMemberUpdated
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(chat, from, date, old_chat_member, new_chat_member, invite_link : Tourmaline::ChatInviteLink? = nil, via_join_request : Bool? = nil, via_chat_folder_invite_link : Bool? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#chat : Tourmaline::Chat #

Chat the user belongs to

View source

#chat=(chat : Tourmaline::Chat) #

Chat the user belongs to

View source

#date : Time #

View source

#date=(date : Time) #

View source

#from : Tourmaline::User #

Performer of the action, which resulted in the change

View source

#from=(from : Tourmaline::User) #

Performer of the action, which resulted in the change

View source

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

View source

#invite_link=(invite_link : Tourmaline::ChatInviteLink?) #

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

View source

#new_chat_member : Tourmaline::ChatMember #

New information about the chat member

View source

#new_chat_member=(new_chat_member : Tourmaline::ChatMember) #

New information about the chat member

View source

#old_chat_member : Tourmaline::ChatMember #

Previous information about the chat member

View source

#old_chat_member=(old_chat_member : Tourmaline::ChatMember) #

Previous information about the chat member

View source

#via_chat_folder_invite_link=(via_chat_folder_invite_link : Bool?) #

Optional. True, if the user joined the chat via a chat folder invite link

View source

#via_chat_folder_invite_link? : Bool? #

Optional. True, if the user joined the chat via a chat folder invite link

View source

#via_join_request=(via_join_request : Bool?) #

Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator

View source

#via_join_request? : Bool? #

Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator

View source