class

Telegram::Generator

Inherits Reference < Object

Main generator class

Constants

API_SPEC_URL = "https://raw.githubusercontent.com/PaulSonOfLars/telegram-bot-api-spec/master/api.min.json"

Constructors

new(output_dir : String = "./src/telegram/generated")
Source

Instance methods

generate

Generate all files

Source
load_spec(url : String = API_SPEC_URL) : APISpec

Download and parse the API specification

Source
output_dir
Source
output_dir=(output_dir : String)
Source
spec
Source
spec=(spec : APISpec | Nil)
Source