2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Add TimeoutError on possible raises of Message.click()

This commit is contained in:
Dan 2018-06-26 16:16:10 +02:00
parent 1cc66c898d
commit fc1c653c05

View File

@ -516,7 +516,8 @@ class Message(Object):
Raises:
: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 quote is None: