Telegram API SendVoice method sends voice as file
<p>I'm trying to send voice message thorough SendVoice method but it sends the voice as a simple ogg file ( not playable ).</p>

<pre><code>https://api.telegram.org/bot&lt;token&gt;/sendVoice?chat_id=x&amp;voice=http://majidamiri.com/up/5.ogg
</code></pre>

<p>In the <a href="https://core.telegram.org/bots/api#sendvoice" rel="nofollow">Telegram API SendVoice</a> it points that the file should be in .ogg opus format , so I converted a mp3 file to opus ogg by ffmpeg with this code :</p>

<p><code>&lt;?php $myConvert = exec('ffmpeg.exe -i 1.mp3 -acodec libopus -b:a 64k -vbr off -compression_level 10 5.ogg'); ?&gt;</code></p>

<p>And again like before it sends it as file.</p>

<p>My ogg Link : <a href="https://majidamiri.com/up/5.ogg" rel="nofollow">https://majidamiri.com/up/5.ogg</a></p>

<p>Can you help me with this issue ?</p>

<p>Thank you all .</p>