mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04:51 +00:00
Add hide_via parameter to send_inline_bot_result
This commit is contained in:
parent
a551f1fe1e
commit
c4280f017e
1 changed files with 7 additions and 2 deletions
|
|
@ -28,7 +28,8 @@ class SendInlineBotResult(BaseClient):
|
||||||
query_id: int,
|
query_id: int,
|
||||||
result_id: str,
|
result_id: str,
|
||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
reply_to_message_id: int = None):
|
reply_to_message_id: int = None,
|
||||||
|
hide_via: bool = None):
|
||||||
"""Use this method to send an inline bot result.
|
"""Use this method to send an inline bot result.
|
||||||
Bot results can be retrieved using :obj:`get_inline_bot_results <pyrogram.Client.get_inline_bot_results>`
|
Bot results can be retrieved using :obj:`get_inline_bot_results <pyrogram.Client.get_inline_bot_results>`
|
||||||
|
|
||||||
|
|
@ -51,6 +52,9 @@ class SendInlineBotResult(BaseClient):
|
||||||
reply_to_message_id (``bool``, *optional*):
|
reply_to_message_id (``bool``, *optional*):
|
||||||
If the message is a reply, ID of the original message.
|
If the message is a reply, ID of the original message.
|
||||||
|
|
||||||
|
hide_via (``bool``):
|
||||||
|
Sends the message with *via @bot* hidden.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
On success, the sent Message is returned.
|
On success, the sent Message is returned.
|
||||||
|
|
||||||
|
|
@ -64,6 +68,7 @@ class SendInlineBotResult(BaseClient):
|
||||||
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,
|
||||||
|
hide_via=hide_via or None
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue