R
R
Roqvie2020-11-02 04:35:48
Python
Roqvie, 2020-11-02 04:35:48

Why doesn't it give access to photo from the dialog in vk_api?

I am using vk_api. Through longpoll I get a photo in the bot (group). I'm trying to get it, through event.attachments, gives out in the format

{'attach1_type': 'photo', 'attach1': 'userId_PhotoId'}
. Further, in order to get a link to the file itself, I use the method .photos.getById(photos=id), I execute it from the user. But this method throws the 200th error, those "Album access denied". What am I doing wrong?

By the way, if you send a photo from your saves and try to get a link by the method .photos.getByIdfrom the same user, then the method succeeds.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timtaran, 2020-11-02
@Roqvie

This is how it should be, if you send a message to a conversation / private message, then it is private, you can’t get it from the link. Try vkbottle , it's lighter, more comfortable and there are reactions to the photo.5f9f9705a140e545517432.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question