Class SendAudioMethod.
see | |
---|---|
package | Default |
create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $audio, array|null $data = null
) : \TgBotApi\BotApiBase\Method\SendAudioMethod
integer
string
\TgBotApi\BotApiBase\Type\InputFileType
string
array
null
\TgBotApi\BotApiBase\Exception\BadArgumentException |
---|
\TgBotApi\BotApiBase\Method\SendAudioMethod
fill(array $data, array $forbidden = array()
)
array
array
\TgBotApi\BotApiBase\Exception\BadArgumentException |
---|
$allowSendingWithoutReply : boolean | null
$audio : \TgBotApi\BotApiBase\Type\InputFileType | string
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.
$disableNotification : boolean | null
$duration : string | null
$parseMode : string | null
$performer : string | null
$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null
$replyToMessageId : integer | null
$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://
$title : string | null