Skip to content

Poll and options (anonymous) #346

Answered by windkh
eutervogel asked this question in Q&A
Discussion options

You must be logged in to vote

I just copied this from the readme

msg.payload.type = 'poll';
msg.payload.content = "What do you think?";
msg.payload.options = ["A", "B", "C" ];
// you can add optional parameters see https://core.telegram.org/bots/api#sendpoll
msg.payload.optional = { allows_multiple_answers : true };
return msg;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by windkh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants