diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 4cbf670..582e25b 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -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