# Node-red-contrib-telegrambot quiz poll not work

**URL:** <https://discourse.nodered.org/t/node-red-contrib-telegrambot-quiz-poll-not-work/66276>\
**Category:** General\
**Created:** [10 August 2022 10:30 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-quiz-poll-not-work/66276 "2022-08-10T10:30:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skynet-cloud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/skynet-cloud/32/64782_2.png) [@skynet-cloud](https://discourse.nodered.org/u/skynet-cloud)\
**Post date:** [10 August 2022 10:30 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-quiz-poll-not-work/66276/1 "2022-08-10T10:30:09Z")

</div>

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

```auto
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:

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 August 2022 11:06 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-quiz-poll-not-work/66276/2 "2022-08-10T11:06:45Z")

</div>

I see you have opened a issue in the node's GitHub page. That was going to be my suggestion.

> <https://github.com/windkh/node-red-contrib-telegrambot/issues/265>
>
> hi if use msg.payload.optional.type = "quiz"
> \`\`\`
> msg.payload.type = 'poll';
> m…sg.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:

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 October 2022 11:06 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-quiz-poll-not-work/66276/3 "2022-10-09T11:06:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
