title: how convert ogg file to telegram voice format?
body: <p>I'm trying to send a voice message through SendVoice method in telegram bot,  but it sends the voice as a document file (not play).</p>
  
  <p>ogg file by ffmpeg converted to opus encoding.</p>
  
  <pre><code>https://api.telegram.org/bot&lt;token&gt;/sendVoice?chat_id=x&amp;voice=http://music-farsi.ir/ogg/voice.ogg
  </code></pre>
  
  <p>What is the difference between the my ogg file and telegram voice message?</p>
  
  <p>My ogg file: <a href="http://music-farsi.ir/ogg/voice.ogg" rel="noreferrer">ogg file</a></p>