windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
264 stars 117 forks source link

poll quiz type not working #265

Closed skynet-cloud closed 2 years ago

skynet-cloud commented 2 years ago

hi if use msg.payload.optional.type = "quiz"

msg.payload.type = 'poll';
msg.payload.content = "What do you think?";
msg.payload.options = ["A", "B", "C" ];

// you can add optional arguments see
// https://core.telegram.org/bots/api#sendpoll
msg.payload.optional = {
    allows_multiple_answers : true,
    is_closed : false,
    type: "quiz"

};
return msg;

Caught exception in sender node: Error: ETELEGRAM: 400 Bad Request: wrong correct option ID specified when processing message:

windkh commented 2 years ago

hm strange seems to be correct https://core.telegram.org/bots/api#sendpoll

can you try single quotes 'quiz' ?

skynet-cloud commented 2 years ago

correct option ID is messing