Answer the question
In order to leave comments, you need to log in
How to get an access key for attachments in VK?
I have a message with an attachment -- a photo. VK api allows you to get its ID in the userid_photoid format. Question: How can I get an access key for this photo? method
api.photos.getById(photos=str(event.attachments['attach1']))
Answer the question
In order to leave comments, you need to log in
https://vk.com/dev/messages.getHistoryAttachments seems to help and https://vk.com/dev/errors
Do you have access to this album?
Does the token have photo permission?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question