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)
- .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
Constructor Detail
def self.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)
#
Instance Method Detail
def invite_link : Tourmaline::ChatInviteLink | Nil
#
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
def invite_link=(invite_link : Tourmaline::ChatInviteLink | Nil)
#
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
def new_chat_member=(new_chat_member : Tourmaline::ChatMember)
#
New information about the chat member
def old_chat_member=(old_chat_member : Tourmaline::ChatMember)
#
Previous information about the chat member