mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
commit
fe1f99abdf
@ -1355,7 +1355,7 @@ def _convert_poll_options(poll_options):
|
|||||||
elif isinstance(poll_options[0], str):
|
elif isinstance(poll_options[0], str):
|
||||||
# Compatibility mode with previous bug when only list of string was accepted as poll_options
|
# Compatibility mode with previous bug when only list of string was accepted as poll_options
|
||||||
return 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]
|
return [option.text for option in poll_options]
|
||||||
else:
|
else:
|
||||||
return poll_options
|
return poll_options
|
||||||
|
Loading…
Reference in New Issue
Block a user