Answer the question
In order to leave comments, you need to log in
Vk api photos.getMessagesUploadServer how to send a photo by a bot?
I created a bot, I want to send a text with a photo at a certain request. For example: the user asks "Masha and the Bear", a bot written in php should send a description with a picture. I can't figure out how to use the photos.getMessagesUploadServer method . What needs to be done first? How should it be done? In general, I don’t understand at all (((I searched a lot on the Internet for absolutely nothing normal on this topic ... I ask that someone explain the thread to me in great detail (Kinu Denyak
Answer the question
In order to leave comments, you need to log in
Here's how to upload a photo to the server
Here's how to save a photo in the community
Here's how to send messages with attachments attachment
The procedure is as follows:
1) Upload the photo to the server
2) Save the photo in the community
3) Send a message to the user along with the photo attachment
4) Delete the photo from the community
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question