Answer the question
In order to leave comments, you need to log in
VK Api / upload photos?
Hello, how can I implement sending photos to the user in private messages. I read in the official documentation, but it's not very clear there
Answer the question
In order to leave comments, you need to log in
It is written quite clearly:
1. We get a link to the server where we will upload photos using the photos.getMessagesUploadServer
https://vk.com/dev/photos.getMessagesUploadServer?...
method
2. We save the response from the server using the photos method. saveMessagesPhoto . That is, we pass to it the information received after loading the file: the fields photo, server and hash.
https://vk.com/dev/photos.saveMessagesPhoto
3. After that, in the response you will receive the identifiers you are interested in.
The guide itself:https://vk.com/dev/upload_files?f=4.+%D0%97%D0%B0%...
Another guide: https://vk.com/pages?f=%D0%97%D0 %B0%D0%B3%D1%80%D1...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question