mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Remove unneeded parameter hide_via from send_inline_bot_result
This commit is contained in:
parent
16de8b7325
commit
0c0a4b5a5c
@ -29,8 +29,7 @@ class SendInlineBotResult(Scaffold):
|
|||||||
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
|
|
||||||
):
|
):
|
||||||
"""Send an inline bot result.
|
"""Send an inline bot result.
|
||||||
Bot results can be retrieved using :meth:`~pyrogram.Client.get_inline_bot_results`
|
Bot results can be retrieved using :meth:`~pyrogram.Client.get_inline_bot_results`
|
||||||
@ -54,9 +53,6 @@ class SendInlineBotResult(Scaffold):
|
|||||||
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:
|
||||||
:obj:`~pyrogram.types.Message`: On success, the sent inline result message is returned.
|
:obj:`~pyrogram.types.Message`: On success, the sent inline result message is returned.
|
||||||
|
|
||||||
@ -72,7 +68,6 @@ class SendInlineBotResult(Scaffold):
|
|||||||
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…
x
Reference in New Issue
Block a user