1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix poll options serialization

This commit is contained in:
Badiboy 2020-05-02 13:27:39 +03:00
parent 6e1cf24946
commit e2d70da694
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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