mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
Pyrogram: Add message_thread_id parameter to send_inline_bot_result()
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
ede9af3e00
commit
d89b083bf0
2 changed files with 4 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ class SendInlineBotResult:
|
||||||
query_id: int,
|
query_id: int,
|
||||||
result_id: str,
|
result_id: str,
|
||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
|
message_thread_id: int = None,
|
||||||
reply_to_message_id: int = None
|
reply_to_message_id: int = None
|
||||||
):
|
):
|
||||||
"""Send an inline bot result.
|
"""Send an inline bot result.
|
||||||
|
|
@ -70,6 +71,6 @@ class SendInlineBotResult:
|
||||||
id=result_id,
|
id=result_id,
|
||||||
random_id=self.rnd_id(),
|
random_id=self.rnd_id(),
|
||||||
silent=disable_notification or None,
|
silent=disable_notification or None,
|
||||||
reply_to_msg_id=reply_to_message_id
|
reply_to_msg_id=reply_to_message_id or message_thread_id
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1780,6 +1780,7 @@ class Message(Object, Update):
|
||||||
result_id: str,
|
result_id: str,
|
||||||
quote: bool = None,
|
quote: bool = None,
|
||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
|
message_thread_id: bool = None,
|
||||||
reply_to_message_id: int = None
|
reply_to_message_id: int = None
|
||||||
) -> "Message":
|
) -> "Message":
|
||||||
"""Bound method *reply_inline_bot_result* of :obj:`~pyrogram.types.Message`.
|
"""Bound method *reply_inline_bot_result* of :obj:`~pyrogram.types.Message`.
|
||||||
|
|
@ -1835,6 +1836,7 @@ class Message(Object, Update):
|
||||||
query_id=query_id,
|
query_id=query_id,
|
||||||
result_id=result_id,
|
result_id=result_id,
|
||||||
disable_notification=disable_notification,
|
disable_notification=disable_notification,
|
||||||
|
message_thread_id=message_thread_id,
|
||||||
reply_to_message_id=reply_to_message_id
|
reply_to_message_id=reply_to_message_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue