I
I
Ilya Bugaets2020-05-31 21:29:12
Python
Ilya Bugaets, 2020-05-31 21:29:12

How to send a photo to a conversation using vk_api?

Looked at many solutions did not help. I want to send a photo from my computer to a user conversation on behalf of the community. Please help and describe in detail. Longpoll 5.92
ps i tried to send message with attachment but i have problem with attributes[100]
vk.method("messages.send", {"peer_id": event.object.peer_id, "attachment": 'photo77252425_457267132', " random_id": 0})
I specified a link to the file, the path to the file, but the bot sent not a photo, but a link
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question