Class InputMediaVideoType.
Methods
create()
create(string|\TgBotApi\BotApiBase\Type\InputFileType $media, array|null $data = null
) : \TgBotApi\BotApiBase\Type\InputMedia\InputMediaVideoType
Static
Parameters
$media
string
\TgBotApi\BotApiBase\Type\InputFileType
$data
array
null
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Returns
\TgBotApi\BotApiBase\Type\InputMedia\InputMediaVideoType
fill()
fill(array $data, array $forbidden = array()
)
Inherited
Parameters
$data
array
$forbidden
array
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Properties
Optional. Video duration.
$duration : integer | null
Optional. Video height.
$height : integer | null
Optional. Pass True, if the uploaded video is suitable for streaming.
$supportStreaming : boolean | null
Optional. Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
$thumb : \TgBotApi\BotApiBase\Type\InputFileType | string | null
A thumbnail‘s width and height should not exceed 90.
Ignored if the file is not uploaded using multipart/form-data.
Thumbnails can’t be reused and can be only uploaded as a new file,
so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data
under .
Optional. Video width.
$width : integer | null