yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.43k stars 1.53k forks source link

get result poll #944

Closed TopoR1 closed 2 years ago

TopoR1 commented 2 years ago

I found a way to create polls using sendPoll, but how do I get the results of what the user has chosen (the user has selected an option or several and clicked vote)?

danielperez9430 commented 2 years ago

Hi @TopoR1, you need to listen the events related to the poll

Check this examples: https://github.com/yagop/node-telegram-bot-api/pull/796#issuecomment-623942673