Skip to content

Commit c4280f0

Browse files
committed
Add hide_via parameter to send_inline_bot_result
1 parent a551f1f commit c4280f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pyrogram/client/methods/bots/send_inline_bot_result.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def send_inline_bot_result(self,
2828
query_id: int,
2929
result_id: str,
3030
disable_notification: bool = None,
31-
reply_to_message_id: int = None):
31+
reply_to_message_id: int = None,
32+
hide_via: bool = None):
3233
"""Use this method to send an inline bot result.
3334
Bot results can be retrieved using :obj:`get_inline_bot_results <pyrogram.Client.get_inline_bot_results>`
3435
@@ -51,6 +52,9 @@ def send_inline_bot_result(self,
5152
reply_to_message_id (``bool``, *optional*):
5253
If the message is a reply, ID of the original message.
5354
55+
hide_via (``bool``):
56+
Sends the message with *via @bot* hidden.
57+
5458
Returns:
5559
On success, the sent Message is returned.
5660
@@ -64,6 +68,7 @@ def send_inline_bot_result(self,
6468
id=result_id,
6569
random_id=self.rnd_id(),
6670
silent=disable_notification or None,
67-
reply_to_msg_id=reply_to_message_id
71+
reply_to_msg_id=reply_to_message_id,
72+
hide_via=hide_via or None
6873
)
6974
)

0 commit comments

Comments
 (0)