1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/VK/CreatePoll.txt

16 lines
491 B
Plaintext
Raw Normal View History

2025-07-06 01:01:25 +03:00
 Parameters = GetVKParameters();
Question = "What's your favorite color?";
OptionArray = New Array;
OptionArray.Add("Red");
OptionArray.Add("Yellow");
OptionArray.Add("Green");
2025-09-01 14:51:24 +03:00
Result = OPI_VK.CreatePoll(Question, OptionArray, , "Post text", Parameters);
// With picture
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary Data
Result = OPI_VK.CreatePoll(Question, OptionArray, Image, , Parameters);