H
H
hr_lolka2017-04-12 17:07:39
In contact with
hr_lolka, 2017-04-12 17:07:39

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

1 answer(s)
S
Sergey Sokolov, 2017-04-12
@hr_lolka

We created a poll via polls.create()- we got a poll object, from which we need properties owner_idand 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 question

Ask a Question

731 491 924 answers to any question