Class InputMediaAudioType.

see
package Default

 Methods

create()

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

Parameters

$media

string\TgBotApi\BotApiBase\Type\InputFileType

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\InputMedia\InputMediaAudioType

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Duration of the audio in seconds.

$duration : integer | null

Default

 

Optional. Performer of the audio.

$performer : string | 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. Title of the audio.

$title : string | null

Default