1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/Telegram/SendPoll.txt
Vitaly the Alpaca (bot) 4b4394db7f Main build (Jenkins)
2025-03-06 20:58:59 +03:00

15 lines
491 B
Plaintext
Vendored

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Question = "What's your favorite color?";
AnswersArray = New Array;
AnswersArray.Add("Red");
AnswersArray.Add("Yellow");
AnswersArray.Add("Green");
AnswersArray.Add("Blue");
Result = OPI_Telegram.SendPoll(Token, ChatID, Question, AnswersArray, False);
Result = OPI_Telegram.SendPoll(Token, ChannelID, Question, AnswersArray, True);