Longman\TelegramBot\Request::sendAudio PHP Метод

sendAudio() публичный статический Метод

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 sending voice messages, use the sendVoice method instead.
public static sendAudio ( array $data, string $file = null ) : ServerResponse
$data array
$file string
Результат Longman\TelegramBot\Entities\ServerResponse
    public static function sendAudio(array $data, $file = null)
    {
        self::assignEncodedFile($data, 'audio', $file);
        return self::send('sendAudio', $data);
    }