public function sendAudio(
        $chatId,
        $audio,
        $duration = null,
        $performer = null,
        $title = null,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $parseMode = null
    ) {
        return Message::fromResponse($this->call('sendAudio', [
            'chat_id' => $chatId,
            'audio' => $audio,
            'duration' => $duration,
            'performer' => $performer,
            'title' => $title,
            'reply_to_message_id' => $replyToMessageId,
            'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
            'parse_mode' => $parseMode
        ]));
    }
public function sendAudio(
        $chatId,
        $audio,
        $duration = null,
        $performer = null,
        $title = null,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $parseMode = null
    ) {
        return Message::fromResponse($this->call('sendAudio', [
            'chat_id' => $chatId,
            'audio' => $audio,
            'duration' => $duration,
            'performer' => $performer,
            'title' => $title,
            'reply_to_message_id' => $replyToMessageId,
            'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
            'parse_mode' => $parseMode
        ]));
    }
public function sendAudio ( $ chatId , $ audio , $ duration = null , $ performer = null , $ title = null , $ replyToMessageId = null , $ replyMarkup = null , $ disableNotification = false , $ parseMode = null ) { return Message :: fromResponse ( $ this -> call ( 'sendAudio' , [ 'chat_id' => $ chatId , 'audio' => $ audio , 'duration' => $ duration , 'performer' => $ performer , 'title' => $ title , 'reply_to_message_id' => $ replyToMessageId , 'reply_markup' => is_null ( $ replyMarkup ) ? $ replyMarkup : $ replyMarkup -> toJson ( ) , 'disable_notification' => ( bool ) $ disableNotification , 'parse_mode' => $ parseMode ] ) ) ; }
Use this method to send audio files,
if you want Telegram clients to display them in the music player.
Your audio must be in the .mp3 format.
On success, the sent Message is returned.
Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.

For backward compatibility, when the fields title and performer are both empty
and the mime-type of the file to be sent is not audio/mpeg, the file will be sent as a playable voice message.
For this to work, the audio must be in an .ogg file encoded with OPUS.
This behavior will be phased out in the future. For sending voice messages, use the sendVoice method instead.

@deprecated since 20th February. Removed backward compatibility from the method sendAudio.
Voice messages now must be sent using the method sendVoice.
There is no more need to specify a non-empty title or performer while sending the audio by file_id.

@param int|string $chatId chat_id or @channel_name
@param \CURLFile|string $audio
@param int|null $duration
@param string|null $performer
@param string|null $title
@param int|null $replyToMessageId
@param Types\ReplyKeyboardMarkup|Types\ReplyKeyboardHide|Types\ForceReply|
Types\ReplyKeyboardRemove|null $replyMarkup
@param bool $disableNotification
@param string|null $parseMode

@return \TelegramBot\Api\Types\Message
@throws \TelegramBot\Api\InvalidArgumentException
@throws \TelegramBot\Api\Exception
Use this method to send audio files if you want Telegram clients to display them in the music player . Your audio must be in the . mp3 format . On success the sent Message is returned . Bots can currently send audio files of up to 50 MB in size this limit may be changed in the future .