Class SendAudioMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $audio, array|null $data = null) : \TgBotApi\BotApiBase\Method\SendAudioMethod
Static

Parameters

$chatId

integerstring

$audio

\TgBotApi\BotApiBase\Type\InputFileTypestring

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\SendAudioMethod

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if the message should be sent even if the specified replied-to message is not found.

$allowSendingWithoutReply : boolean | null

Default

 

Audio file to send.

$audio : \TgBotApi\BotApiBase\Type\InputFileType | string

Default

Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data.

 

Optional. Media caption (may also be used when resending photos by file_id), 0-1024 characters\.

$caption : string | null

Default

 

Optional. Sends the message silently. Users will receive a notification with no sound.

$disableNotification : boolean | null

Default

 

Optional Duration of the audio in seconds.

$duration : string | null

Default

 

Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.

$parseMode : string | null

Default

 

Optional. Performer.

$performer : string | null

Default

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default

 

Optional. If the message is a reply, ID of the original message.

$replyToMessageId : 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 . More info on Sending Files.

 

Optional. Track name.

$title : string | null

Default