1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

send_poll fix of fix

Previous update was inconsistent, sorry.
This commit is contained in:
Badiboy 2021-05-15 20:08:51 +03:00
parent 10d0ff2c06
commit 7540a26fb9

View File

@ -1355,7 +1355,7 @@ def _convert_poll_options(poll_options):
elif isinstance(poll_options[0], str):
# Compatibility mode with previous bug when only list of string was accepted as poll_options
return poll_options
elif isinstance(poll_options[0], types.JsonSerializable):
elif isinstance(poll_options[0], types.PollOption):
return [option.text for option in poll_options]
else:
return poll_options