class Telegram::API::ChatMemberUpdated

Overview

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

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(chat : Chat, from : User, date : Time, old_chat_member : ChatMember, new_chat_member : ChatMember, invite_link : ChatInviteLink | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

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


[View source]

Instance Method Detail

def chat : Chat #

Chat the user belongs to


[View source]
def chat=(chat : Chat) #

Chat the user belongs to


[View source]
def date : Time #

Date the change was done in Unix time


[View source]
def date=(date : Time) #

Date the change was done in Unix time


[View source]
def from : User #

Performer of the action, which resulted in the change


[View source]
def from=(from : User) #

Performer of the action, which resulted in the change


[View source]
def invite_link : ChatInviteLink | Nil #

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


[View source]
def invite_link=(invite_link : ChatInviteLink | Nil) #

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


[View source]
def new_chat_member : ChatMember #

New information about the chat member


[View source]
def new_chat_member=(new_chat_member : ChatMember) #

New information about the chat member


[View source]
def old_chat_member : ChatMember #

Previous information about the chat member


[View source]
def old_chat_member=(old_chat_member : ChatMember) #

Previous information about the chat member


[View source]