Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: make explanation optional
  • Loading branch information
Midblyte committed Mar 18, 2024
commit 94fbffc6cd43ab901defeffa64f37bfdbc9ddbc8
4 changes: 2 additions & 2 deletions hydrogram/methods/messages/send_poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def send_poll(
await utils.parse_text_entities(
self, explanation, explanation_parse_mode, explanation_entities
)
).values()
).values() if explanation else (None, None)

reply_to = utils.get_reply_head_fm(message_thread_id, reply_to_message_id)

Expand All @@ -169,7 +169,7 @@ async def send_poll(
if correct_option_id is not None
else None,
solution=solution,
solution_entities=solution_entities or [],
solution_entities=None if solution is None else (solution_entities or []),
),
message="",
silent=disable_notification,
Expand Down