From fc1c653c05717e55cd2a237b0c40532d309293b3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 26 Jun 2018 16:16:10 +0200 Subject: [PATCH] Add TimeoutError on possible raises of Message.click() --- pyrogram/client/types/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/types/message.py b/pyrogram/client/types/message.py index d80c657d..b969865c 100644 --- a/pyrogram/client/types/message.py +++ b/pyrogram/client/types/message.py @@ -516,7 +516,8 @@ class Message(Object): Raises: :class:`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: