How can I send an MP3 audio file to a Telegram Bot using the open-source Python library Requests?
I wrote the following code:
URL = 'api.telegram.org/bot'+TOKEN+'/sendAudio'
af = open("temp.mp3", 'rb')
params = {'chat_id' : 421087308, 'audio' : af}
req = requests.post(URL, params)
af.close()