class
Telecr::Types::Chat
- Telecr::Types::Chat
- Telecr::Types::BaseType
- Reference
- Object
Defined in:
api/types.crConstructors
Instance Method Summary
- #channel? : Bool
- #chat_type : String
- #chat_type=(chat_type : String)
- #first_name : String | Nil
- #first_name=(first_name : String | Nil)
- #group? : Bool
- #id : Int64
- #id=(id : Int64)
- #is_forum : Bool | Nil
- #is_forum=(is_forum : Bool | Nil)
- #last_name : String | Nil
- #last_name=(last_name : String | Nil)
- #private? : Bool
- #supergroup? : Bool
- #title : String | Nil
- #title=(title : String | Nil)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #username : String | Nil
- #username=(username : String | Nil)
Instance methods inherited from class Telecr::Types::BaseType
inspect(io : IO) : Nil
inspect,
to_h : Hash(String, JSON::Any)
to_h
Constructor methods inherited from class Telecr::Types::BaseType
new(pull : JSON::PullParser)
new
Constructor Detail
Instance Method Detail
def to_s(io : IO) : Nil
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>