class Telecr::Types::Chat

Overview

Chat object

Defined in:

api/types.cr

Instance Method Summary

Instance methods inherited from class Telecr::Types::BaseType

inspect(io : IO) : Nil inspect, raw : Hash(String, JSON::Any) raw, to_h : Hash(String, JSON::Any) to_h, to_s(io : IO) : Nil to_s

Constructor methods inherited from class Telecr::Types::BaseType

new(raw : Hash(String, JSON::Any)) new

Instance Method Detail

def channel? : Bool #

[View source]
def chat_type : String | Nil #

[View source]
def first_name : String | Nil #

[View source]
def group? : Bool #

[View source]
def id : Int64 | Nil #

[View source]
def last_name : String | Nil #

[View source]
def private? : Bool #

[View source]
def supergroup? : Bool #

[View source]
def title : String | Nil #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def username : String | Nil #

[View source]