class Telecr::Types::User

Defined in:

api/types.cr

Constructors

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def added_to_attachment_menu : Bool | Nil #

[View source]
def added_to_attachment_menu=(added_to_attachment_menu : Bool | Nil) #

[View source]
def first_name : String #

[View source]
def first_name=(first_name : String) #

[View source]
def full_name : String #

Existing helper functionality


[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def is_bot : Bool #

[View source]
def is_bot=(is_bot : Bool) #

[View source]
def is_premium : Bool | Nil #

[View source]
def is_premium=(is_premium : Bool | Nil) #

[View source]
def language_code : String | Nil #

[View source]
def language_code=(language_code : String | Nil) #

[View source]
def last_name : String | Nil #

[View source]
def last_name=(last_name : String | Nil) #

[View source]
def mention : String #

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

[View source]
def username : String | Nil #

[View source]
def username=(username : String | Nil) #

[View source]