Q
Q
queenofcaps2021-08-08 13:45:05
JavaScript
queenofcaps, 2021-08-08 13:45:05

How to attach an image to a reply message from a VK bot?

I am writing a VK bot, I don’t understand how to attach a picture to a message. In Google, the corresponding example cannot be googled, apparently I'm a bad Googler. I’m reading the VK documentation, it seems clear that attachment is needed here, but as a beginner I can’t get into it. Could you correct what is wrong with a concrete example in the code? The picture, for example, is taken from the community album.

msg.send(` ${user.nick}, everything is fine - ${pet[a].pet_name}!\n\n To learn this feature, type "learn"!`, attachment photo-206039155_457239019 )

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