class Tourmaline::ChatMemberUpdated
- Tourmaline::ChatMemberUpdated
- Reference
- Object
Overview
This object represents changes in the status of a chat member.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(chat : Tourmaline::Chat, from : Tourmaline::User, date : Time, old_chat_member : Tourmaline::ChatMemberAdministrator | Tourmaline::ChatMemberBanned | Tourmaline::ChatMemberLeft | Tourmaline::ChatMemberMember | Tourmaline::ChatMemberOwner | Tourmaline::ChatMemberRestricted, new_chat_member : Tourmaline::ChatMemberAdministrator | Tourmaline::ChatMemberBanned | Tourmaline::ChatMemberLeft | Tourmaline::ChatMemberMember | Tourmaline::ChatMemberOwner | Tourmaline::ChatMemberRestricted, invite_link : Tourmaline::ChatInviteLink | Nil = nil, via_chat_folder_invite_link : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#chat : Tourmaline::Chat
Chat the user belongs to
-
#chat=(chat : Tourmaline::Chat)
Chat the user belongs to
- #date : Time
- #date=(date : Time)
-
#from : Tourmaline::User
Performer of the action, which resulted in the change
-
#from=(from : Tourmaline::User)
Performer of the action, which resulted in the change
-
#invite_link : Tourmaline::ChatInviteLink | Nil
Optional.
-
#invite_link=(invite_link : Tourmaline::ChatInviteLink | Nil)
Optional.
-
#new_chat_member : Tourmaline::ChatMember
New information about the chat member
-
#new_chat_member=(new_chat_member : Tourmaline::ChatMember)
New information about the chat member
-
#old_chat_member : Tourmaline::ChatMember
Previous information about the chat member
-
#old_chat_member=(old_chat_member : Tourmaline::ChatMember)
Previous information about the chat member
-
#via_chat_folder_invite_link=(via_chat_folder_invite_link : Bool | Nil)
Optional.
-
#via_chat_folder_invite_link? : Bool | Nil
Optional.
Constructor Detail
Instance Method Detail
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
New information about the chat member
Previous information about the chat member
Optional. True, if the user joined the chat via a chat folder invite link
Optional. True, if the user joined the chat via a chat folder invite link