class Telecr::Types::User

Overview

User 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 first_name : String | Nil #

[View source]
def full_name : String #

[View source]
def id : Int64 | Nil #

[View source]
def is_bot : Bool | Nil #

[View source]
def is_premium : Bool | Nil #

[View source]
def language_code : String | Nil #

[View source]
def last_name : String | Nil #

[View source]
def mention : String #

[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]