class Hamilton::Types::ChatMemberUpdated

Overview

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

Included Modules

Defined in:

types/chat_member_update.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

Chat the user belongs to.


def chat=(chat : Hamilton::Types::Chat) #

Chat the user belongs to.


def date : Int32 #

Date the change was done in Unix time.


def date=(date : Int32) #

Date the change was done in Unix time.


Performer of the action, which resulted in the change.


def from=(from : Hamilton::Types::User) #

Performer of the action, which resulted in the change.


def invite_link : Hamilton::Types::ChatInviteLink | Nil #

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 : Hamilton::Types::ChatInviteLink | Nil) #

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


def new_chat_member : Hamilton::Types::ChatMember #

New information about the chat member.


def new_chat_member=(new_chat_member : Hamilton::Types::ChatMember) #

New information about the chat member.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def old_chat_member : Hamilton::Types::ChatMember #

Previous information about the chat member.


def old_chat_member=(old_chat_member : Hamilton::Types::ChatMember) #

Previous information about the chat member.


def via_chat_folder_invite_link : Bool | Nil #

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


def via_chat_folder_invite_link=(via_chat_folder_invite_link : Bool | Nil) #

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


def via_join_request : Bool | Nil #

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


def via_join_request=(via_join_request : Bool | Nil) #

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