class TelegramBot::InputMediaAudio

Included Modules

Defined in:

telegram_bot/types/input_media_audio.cr

Constructors

Instance Method Summary

Instance methods inherited from class TelegramBot::InputMedia

to_json(json : JSON::Builder) to_json

Constructor Detail

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

def self.new(media : String | AttachedFile, *, thumbnail : String | AttachedFile | Nil = nil, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, duration : Int32 | Nil = nil, performer : String | Nil = nil, title : String | Nil = nil) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def caption : String | Nil #

def caption=(caption : String | Nil) #

def caption_entities : Array(MessageEntity) | Nil #

def caption_entities=(caption_entities : Array(MessageEntity) | Nil) #

def collect_attachments(attachments : Hash(String, String | ::File)) : Nil #

def duration : Int32 | Nil #

def duration=(duration : Int32 | Nil) #

def media : String | AttachedFile #

def media=(media : String | AttachedFile) #

def parse_mode : String | Nil #

def parse_mode=(parse_mode : String | Nil) #

def performer : String | Nil #

def performer=(performer : String | Nil) #

def thumbnail : String | AttachedFile | Nil #

def thumbnail=(thumbnail : String | AttachedFile | Nil) #

def title : String | Nil #

def title=(title : String | Nil) #

def type : String #

def type=(type : String) #