How to get the image from the message Vk?

I want to implement a feature that people send photos in a PM, and I could get it (download it or the url etc)

How it can be implemented via Long Poll vk_api?
April 19th 20 at 12:46
2 answers
April 19th 20 at 12:48
That's So
Funny... If it all worked, I would not write here. - wallace_Collins21 commented on April 19th 20 at 12:51
@wallace_Collins21, all works, and you do not? Can you what not to do so? - Lafayette.Abshire36 commented on April 19th 20 at 12:54
Returns text + blank box without pictures
5e9b5e3ca11f1599808810.png
5e9b5e6aa5b9e348092292.png - wallace_Collins21 commented on April 19th 20 at 12:57
@wallace_Collins21, you just need longpoll? With colback everything works https://vk.com/dev/callback_api - Dawn.Prosacco commented on April 19th 20 at 13:00
@Dawn.Prosacco, I Have almost the whole bot is written using Add and if I'm not mistaken you can not use the Long along with the Call. - wallace_Collins21 commented on April 19th 20 at 13:03
@wallace_Collins21you first learn how to take images from users - Lafayette.Abshire36 commented on April 19th 20 at 13:06
@Lafayette.Abshire36taking, I get type - a photo id - who sent, and the id photos sent. The manual I have to send a message with the method "messages.send" with the parameter "attachment": "photo1234_123456".
The result of all this I sent the screenshots above.
And Yes, it is not necessary to write here: Go learn, Go read. I ask to help and to give an example, not to look at the writings. - wallace_Collins21 commented on April 19th 20 at 13:09
@wallace_Collins21on someone else's code you will not learn. Read about attachments - Lafayette.Abshire36 commented on April 19th 20 at 13:12
@Lafayette.Abshire36now to send the same as I described. Thank you. I don't expect help, good luck. - wallace_Collins21 commented on April 19th 20 at 13:15
@wallace_Collins21on your code in the screenshot look closely, at first, then again in the documentation - Lafayette.Abshire36 commented on April 19th 20 at 13:18
@Lafayette.Abshire36, This code works if the person sends a photo from your album in the VC, and if you upload a photo with the PC, he will not display it. - wallace_Collins21 commented on April 19th 20 at 13:21
@wallace_Collins21, so you need to save the photo or send the message? - rosemarie commented on April 19th 20 at 13:24
@rosemarie, 5e9c015d253e5790466080.png - wallace_Collins21 commented on April 19th 20 at 13:27
April 19th 20 at 12:50
If you use vk_api, the attachments come with all the necessary data, including the download URL.
Use attachments, I get a type - a photo id - who sent, and the id photos sent. The manual I have to send a message with the method "messages.send" with the parameter "attachment": "photo1234_123456".
The result of all this, I get only the ability to make photo albums in Vk other users, but when I send a photo from the PC I get nothing, just a owner id and id photos, but the photos I get. - wallace_Collins21 commented on April 19th 20 at 12:53

Find more questions by tags VKontaktePython