mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Add TimeoutError on possible raises of Message.click()
This commit is contained in:
parent
1cc66c898d
commit
fc1c653c05
@ -516,7 +516,8 @@ class Message(Object):
|
|||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>`
|
:class:`Error <pyrogram.Error>`
|
||||||
``ValueError``: If the provided index or position is out of range or the button label was not found.
|
``ValueError``: If the provided index or position is out of range or the button label was not found
|
||||||
|
``TimeoutError``: If, after clicking an inline button, the bot fails to answer within 10 seconds
|
||||||
"""
|
"""
|
||||||
if isinstance(self.reply_markup, ReplyKeyboardMarkup):
|
if isinstance(self.reply_markup, ReplyKeyboardMarkup):
|
||||||
if quote is None:
|
if quote is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user