I
I
ilavash2021-01-24 21:39:44
Python
ilavash, 2021-01-24 21:39:44

How to send a song to Telegram with metadata using a Python bot?

Let's say I have a song stored on my site:
url_song = https://ilavash.com/music/d4f6c9b6ad5cf.mp3
url_tg = https://api.telegram.org/bot{TOKEN}/sendAudio

using Request.post(url_tg, data= data)
in data I pass chat_id and a link to the song
So if the song originally had metadata (artist and title), then telegram accepts them.
My question is, is it possible to somehow send metadata with the request?
I know that 'performer' and 'title' can be specified in the sendAudio method, but this only works with local files.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question