Vk Bot Api: how to get a link to the attachment?

If the user sends the bot a message that the attachment is a picture of me, via the long poll get only the ID of this photo. But how to link?
In the API Vkontakte there is a method photos.getById, but it can't be called with the key community, which is working bot. How to be?
I've seen bots that process the attachments of pictures, so the method should be?
June 10th 19 at 15:32
1 answer
June 10th 19 at 15:34
Solution
Found this: the attachment links you can obtain by calling the messages.getById

Find more questions by tags VKontakte