M
M
Meyl_ON2021-05-05 10:13:45
API
Meyl_ON, 2021-05-05 10:13:45

VK-IO: how to download photos sent by the user as attachments?

To process a photo and then send it, you need to download it or get its url.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Meyl_ON, 2021-05-20
@Meyl_ON

Helped context.attachments[0].largeSizeUrl

I
iBird Rose, 2021-05-05
@iiiBird

well, you get a photo in the form of photo ownerid_photoid pass
it through https://vk.com/dev/photos.getById

U
UberPool, 2021-05-05
@UberPool

You don't need to download anything to send it.
To send an attachment, you need to use the following format:
photoowner_id_photo_id_access_key
Above, you have already been suggested a method for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question