telegram bot don't send mp3 file from xammp server in windows server

ⅰ亾dé卋堺 提交于 2019-12-12 04:46:11

问题


  1. My mp3 link is : 1.mp3
  2. OS = Windows Server 2008 and run xammp server
  3. My code is :
    https://api.telegram.org/bot_token/sendAudio?chat_id=@test&audio=http://panel.cafefars.com:8088/mp3/1.mp3

Error after run :

{"ok":false,"error_code":400,"description":"Bad Request: failed to get HTTP URL content"}

mp3 url is correct but telegram not download

thanks all


回答1:


Firstly you should encode your URL - by this one for example.
Secondly you should check your URL because it doesn't work for me too, but this is works fine - http://beginenglish.ru/download/audio/5/f/7/4/8843aa965d.mp3.

You can test it by this request (don't forget to change bot_token and chat_id):

https://api.telegram.org/bot_token/sendAudio?chat_id=@chat_id&audio=http%3A%2F%2Fbeginenglish.ru%2Fdownload%2Faudio%2F5%2Ff%2F7%2F4%2F8843aa965d.mp3


来源:https://stackoverflow.com/questions/44637890/telegram-bot-dont-send-mp3-file-from-xammp-server-in-windows-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!