Answer the question
In order to leave comments, you need to log in
How to attach a poll to a post in a vk api group?
Good afternoon, I’m trying to attach a poll to a post, but I didn’t find the necessary information anywhere, except to create a poll https://vk.com/dev/polls.create , as a result I get owner id, id, etc., but how to attach to a post ?
Answer the question
In order to leave comments, you need to log in
We created a poll via polls.create()
- we got a poll object, from which we need properties owner_id
and id
.
Now create a post on the wall wall.post() , where the poll is attached in the attachments field as a text string "poll" + owner_id + "_" + id
- for example,poll-123_456
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question