From 58823a86b9dc1750558fef1094952d3fd5c1e4cc Mon Sep 17 00:00:00 2001 From: VeeTaW Date: Sat, 28 Jan 2017 17:03:44 +0100 Subject: [PATCH] fixed a horrible mistake (#53) --- tests/testing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testing.php b/tests/testing.php index aa74c4276..c0e097fea 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -86,10 +86,10 @@ $media['video'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'm // audio $inputFile = $MadelineProto->upload('tests/mosconi.mp3'); -$media['audio'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO', 'performer' => 'IL DIO GERARDO MOSCONI']]]; +$media['audio'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; // voice -$media['voice'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO', 'performer' => 'IL DIO GERARDO MOSCONI']]]; +$media['voice'] = ['_' => 'inputMediaUploadedDocument', 'file' => $inputFile, 'mime_type' => mime_content_type('tests/mosconi.mp3'), 'caption' => 'test', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => 1, 'title' => 'AH NON LO SO IO', 'performer' => 'IL DIO GERMANO MOSCONI']]]; // Document $time = time();