Class InputMediaAnimationType.

see
package Default

 Methods

create()

create(string|\TgBotApi\BotApiBase\Type\InputFileType $media, array|null $data = null) : \TgBotApi\BotApiBase\Type\InputMedia\InputMediaAnimationType
Static

Parameters

$media

string\TgBotApi\BotApiBase\Type\InputFileType

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\InputMedia\InputMediaAnimationType

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Animation duration.

$duration : integer | null

Default

 

Optional. Animation height.

$height : integer | null

Default

 

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

Default

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. Animation width.

$width : integer | null

Default