class

Telegram::ClientGenerator

Inherits Reference < Object

Generates HTTP client methods from API specification

Constants

FILE_ACCEPTING_METHODS = ["sendPhoto", "sendAudio", "sendDocument", "sendVideo", "sendAnimation", "sendVoice", "sendVideoNote", "sendMediaGroup", "setChatPhoto", "setStickerSetThumbnail", "uploadStickerFile", "addStickerToSet", "createNewStickerSet", "replaceStickerInSet", "setWebhook"] of String

List of Telegram Bot API methods that can accept file uploads This follows the same approach as Tourmaline for better accuracy

TYPE_RENAMES = {"File" => "TelegramFile"}

Rename map for conflicting type names (same as TypeGenerator)

Constructors

new(output_dir : String)
Source

Instance methods

generate(spec : APISpec)
Source
output_dir
Source
output_dir=(output_dir : String)
Source