Merge pull request #1158 from Badiboy/master

send_poll fix of fix
This commit is contained in:
Badiboy 2021-05-15 20:09:49 +03:00 committed by GitHub
commit fe1f99abdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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