mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 21:38:04 +00:00
Mention timeout and retries in docs for request_callback_answer
This commit is contained in:
parent
166b3646ac
commit
56f616c753
@ -25,9 +25,8 @@ class RequestCallbackAnswer(BaseClient):
|
|||||||
chat_id: int or str,
|
chat_id: int or str,
|
||||||
message_id: int,
|
message_id: int,
|
||||||
callback_data: str):
|
callback_data: str):
|
||||||
"""Use this method to request a callback answer from bots. This is the equivalent of clicking an inline button
|
"""Use this method to request a callback answer from bots. This is the equivalent of clicking an
|
||||||
containing callback data. The answer contains info useful for clients to display a notification at the top of
|
inline button containing callback data.
|
||||||
the chat screen or as an alert.
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (``int`` | ``str``):
|
chat_id (``int`` | ``str``):
|
||||||
@ -41,6 +40,14 @@ class RequestCallbackAnswer(BaseClient):
|
|||||||
|
|
||||||
callback_data (``str``):
|
callback_data (``str``):
|
||||||
Callback data associated with the inline button you want to get the answer from.
|
Callback data associated with the inline button you want to get the answer from.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The answer containing info useful for clients to display a notification at the top of the chat screen
|
||||||
|
or as an alert.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
:class:`Error <pyrogram.Error>`
|
||||||
|
``TimeoutError``: If the bot fails to answer within 10 seconds
|
||||||
"""
|
"""
|
||||||
return self.send(
|
return self.send(
|
||||||
functions.messages.GetBotCallbackAnswer(
|
functions.messages.GetBotCallbackAnswer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user