1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/VK/CreatePoll.txt
Vitaly the Alpaca (bot) 3d4bbb5f8b Main build (Jenkins)
2025-09-01 14:51:24 +03:00

16 lines
491 B
Plaintext
Vendored

Parameters = GetVKParameters();
Question = "What's your favorite color?";
OptionArray = New Array;
OptionArray.Add("Red");
OptionArray.Add("Yellow");
OptionArray.Add("Green");
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);