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:
parent
6e1cf24946
commit
e2d70da694
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user