mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 00:35:10 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user