class Telegram::API::ChatMemberBanned

Overview

Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.

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(status : String, user : User, until_date : Int32) #

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

Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.


[View source]

Instance Method Detail

def status : String #

The member's status in the chat, always "kicked"


[View source]
def status=(status : String) #

The member's status in the chat, always "kicked"


[View source]
def until_date : Int32 #

Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever


[View source]
def until_date=(until_date : Int32) #

Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever


[View source]
def user : User #

Information about the user


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

Information about the user


[View source]