mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
Add TimeoutError on possible raises of Message.click()
This commit is contained in:
parent
1cc66c898d
commit
fc1c653c05
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue