abstract class Telecr::Types::BaseType

Overview

Base class for all Telegram API objects

Direct Known Subclasses

Defined in:

api/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw : Hash(String, JSON::Any)) #

[View source]

Instance Method Detail

def inspect(io : IO) : Nil #

Inspect for debugging


[View source]
def raw : Hash(String, JSON::Any) #

Raw data from Telegram


[View source]
def to_h : Hash(String, JSON::Any) #

Convert back to hash


[View source]
def to_s(io : IO) : Nil #

String representation


[View source]