class
TelegramBot::InputPaidMediaVideo
- TelegramBot::InputPaidMediaVideo
- TelegramBot::InputPaidMedia
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/input_paid_media.crConstructors
- .new(pull : JSON::PullParser)
- .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)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #collect_attachments(attachments : Hash(String, String | ::File)) : Nil
- #cover : String | AttachedFile | Nil
- #cover=(cover : String | AttachedFile | Nil)
- #duration : Int32 | Nil
- #duration=(duration : Int32 | Nil)
- #height : Int32 | Nil
- #height=(height : Int32 | Nil)
- #media : String | AttachedFile
- #media=(media : String | AttachedFile)
- #start_timestamp : Int32 | Nil
- #start_timestamp=(start_timestamp : Int32 | Nil)
- #supports_streaming=(supports_streaming : Bool | Nil)
- #supports_streaming? : Bool | Nil
- #thumbnail : String | AttachedFile | Nil
- #thumbnail=(thumbnail : String | AttachedFile | Nil)
- #type : String
- #type=(type : String)
- #width : Int32 | Nil
- #width=(width : Int32 | Nil)
Instance methods inherited from class TelegramBot::InputPaidMedia
to_json(json : JSON::Builder)
to_json
Constructor Detail
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)
#