Answer the question
In order to leave comments, you need to log in
When receiving data about a message, it is not possible to pull out the data?
I apologize in advance for the title.
So. When requesting message.attachments, it gives me this data:
I need to get WallAttachment or id, ownerId.
I can't get something
Answer the question
In order to leave comments, you need to log in
const [wall] = message.getAttachments('wall');
wall.id // => number
wall.ownerId // => number
message.attachment.ownerId e.g.
I assume you are using the vk-io library and therefore you can look at the documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question