I
I
Ilya Sevastyanov2018-10-11 21:11:38
Python
Ilya Sevastyanov, 2018-10-11 21:11:38

How to send a random photo as a bot?

If you write
vk.method("messages.send", {"peer_id": id, "attachment": "photo189488404_456242216"})
then the bot will just send a message. And how to make him send a random photo from the album?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2018-10-11
@iiiBird

why do you put it in the message, if you have to in the attachment? https://vk.com/dev/messages.send
well, you should already make a random photo on your own

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question