pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

how to use bot.send_poll function?

Open BakhodirIsmatov opened this issue 6 years ago • 4 comments

Hello everybody. I want to use send_poll function. Please write example for this function. How can I use this function? how correct make poll? Thanks.

BakhodirIsmatov avatar Apr 08 '20 15:04 BakhodirIsmatov

poll = types.Poll(question='Some question')
poll.add('Option 1')
poll.add('Option 2')
poll.add('Option 3')
bot.send_poll(chat_id, poll)

Pushokkk avatar Apr 10 '20 14:04 Pushokkk

what about quiz mode?

BakhodirIsmatov avatar Apr 10 '20 14:04 BakhodirIsmatov

Seems like quiz mod is not supported yet, maybe this function will be added later.

Pushokkk avatar Apr 10 '20 15:04 Pushokkk

thank u so much

BakhodirIsmatov avatar Apr 11 '20 13:04 BakhodirIsmatov