class TelegramBot::InputPaidMediaVideo

Included Modules

Defined in:

telegram_bot/types/input_paid_media.cr

Constructors

Instance Method Summary

Instance methods inherited from class TelegramBot::InputPaidMedia

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, cover : String | AttachedFile | Nil = nil, start_timestamp : Int32 | Nil = nil, width : Int32 | Nil = nil, height : Int32 | Nil = nil, duration : Int32 | Nil = nil, supports_streaming : Bool | Nil = nil) #

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

Instance Method Detail

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

def cover : String | AttachedFile | Nil #

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

def duration : Int32 | Nil #

def duration=(duration : Int32 | Nil) #

def height : Int32 | Nil #

def height=(height : Int32 | Nil) #

def media : String | AttachedFile #

def media=(media : String | AttachedFile) #

def start_timestamp : Int32 | Nil #

def start_timestamp=(start_timestamp : Int32 | Nil) #

def supports_streaming=(supports_streaming : Bool | Nil) #

def supports_streaming? : Bool | Nil #

def thumbnail : String | AttachedFile | Nil #

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

def type : String #

def type=(type : String) #

def width : Int32 | Nil #

def width=(width : Int32 | Nil) #