Fix reply_to can be optional

This commit is contained in:
Lonami Exo
2023-07-21 22:44:35 +02:00
parent 75ed58ad89
commit 164d35681e
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class InlineResult:
background=background,
clear_draft=clear_draft,
hide_via=hide_via,
reply_to=types.InputReplyToMessage(reply_id)
reply_to=None if reply_id is None else types.InputReplyToMessage(reply_id)
)
return self._client._get_response_message(
req, await self._client(req), entity)