From 7540a26fb944c6485def1bc35ef6f249e94c04ee Mon Sep 17 00:00:00 2001 From: Badiboy Date: Sat, 15 May 2021 20:08:51 +0300 Subject: [PATCH] send_poll fix of fix Previous update was inconsistent, sorry. --- telebot/apihelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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