Answer the question
In order to leave comments, you need to log in
How to convert to JS?
Hello.
I found this code in Python on the Internet:
upload_url = vk.method("docs.getMessagesUploadServer", {"type": "audio_message", "peer_id": id, "v": "5.103"})['upload_url']
request = requests.post(upload_url, files={'file': open(filePath, 'rb')}).json()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question