mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Fix RPCError 400 QUIZ_CORRECT_ANSWER_EMPTY (#367)
* Fix RPCError 400 QUIZ_CORRECT_ANSWER_EMPTY * Fix RPCError 400 QUIZ_CORRECT_ANSWER_EMPTY
This commit is contained in:
parent
1996fb1481
commit
a2652f02b5
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class SendPoll(BaseClient):
|
|||
public_voters=not is_anonymous or None,
|
||||
quiz=type == "quiz" or None
|
||||
),
|
||||
correct_answers=[bytes([correct_option_id])] if correct_option_id else None
|
||||
correct_answers=None if correct_option_id is None else [bytes([correct_option_id])]
|
||||
),
|
||||
message="",
|
||||
silent=disable_notification or None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue