diff --git a/telebot/__init__.py b/telebot/__init__.py index c1d7511..e1d13f8 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1217,7 +1217,7 @@ class TeleBot: Send polls :param chat_id: :param question: - :param options: + :param options: array of str with answers :param is_anonymous: :param type: :param allows_multiple_answers: diff --git a/telebot/apihelper.py b/telebot/apihelper.py index e59515a..e171a1c 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -1008,7 +1008,7 @@ def send_poll( payload = { 'chat_id': str(chat_id), 'question': question, - 'options': _convert_list_json_serializable(options)} + 'options': json.dumps(options)} if is_anonymous is not None: payload['is_anonymous'] = is_anonymous