class TD::Supergroup

Included Modules

Defined in:

telegram/types/supergroup.cr

Constructors

Instance Method Summary

Instance methods inherited from class TD::Base

extract_abstract_type(__json : JSON::Any) extract_abstract_type, extract_type(__json : JSON::Any, class_type : Class) extract_type

Macros inherited from class TD::Base

object_attributes(type) object_attributes, object_type(type) object_type

Constructor Detail

def self.new(id : Int64, username : String, date : Int32, status : TD::ChatMemberStatus, member_count : Int32, restriction_reason : String, has_linked_chat : Bool = false, has_location : Bool = false, sign_messages : Bool = false, is_slow_mode_enabled : Bool = false, is_channel : Bool = false, is_broadcast_group : Bool = false, is_verified : Bool = false, is_scam : Bool = false, is_fake : Bool = false) #

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

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def date : Int32 #

def date=(date : Int32) #

def has_linked_chat : Bool #

def has_linked_chat=(has_linked_chat : Bool) #

def has_location : Bool #

def has_location=(has_location : Bool) #

def id : Int64 #

def id=(id : Int64) #

def is_broadcast_group : Bool #

def is_broadcast_group=(is_broadcast_group : Bool) #

def is_channel : Bool #

def is_channel=(is_channel : Bool) #

def is_fake : Bool #

def is_fake=(is_fake : Bool) #

def is_scam : Bool #

def is_scam=(is_scam : Bool) #

def is_slow_mode_enabled : Bool #

def is_slow_mode_enabled=(is_slow_mode_enabled : Bool) #

def is_verified : Bool #

def is_verified=(is_verified : Bool) #

def member_count : Int32 #

def member_count=(member_count : Int32) #

def object_type : String #

def object_type=(object_type : String) #

def restriction_reason : String #

def restriction_reason=(restriction_reason : String) #

def sign_messages : Bool #

def sign_messages=(sign_messages : Bool) #

def status : TD::ChatMemberStatus #

def status=(status : TD::ChatMemberStatus) #

def username : String #

def username=(username : String) #