struct

Telegram::Field

Inherits JSON::Serializable < Struct < Value < Object

Represents a field in an API method or type

Constructors

new(name : String, types : Array(String), required : Bool = false, description : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

from_json(json : String)
Source

Instance methods

description
Source
description=(description : String)
Source
name
Source
name=(name : String)
Source
required
Source
required=(required : Bool)
Source
type_field
Source
type_field=(type_field : String | Nil)
Source
types
Source
types=(types : Array(String))
Source