mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix timeout error not being excepted on Button.click
This commit is contained in:
@@ -108,7 +108,7 @@ class ServerError(RPCError):
|
||||
self.message = message
|
||||
|
||||
|
||||
class BotTimeout(RPCError):
|
||||
class TimedOutError(RPCError):
|
||||
"""
|
||||
Clicking the inline buttons of bots that never (or take to long to)
|
||||
call ``answerCallbackQuery`` will result in this "special" RPCError.
|
||||
@@ -121,6 +121,9 @@ class BotTimeout(RPCError):
|
||||
self.message = message
|
||||
|
||||
|
||||
BotTimeout = TimedOutError
|
||||
|
||||
|
||||
class BadMessageError(Exception):
|
||||
"""Occurs when handling a bad_message_notification."""
|
||||
ErrorMessages = {
|
||||
|
@@ -1,3 +1,3 @@
|
||||
# Versions should comply with PEP440.
|
||||
# This line is parsed in setup.py:
|
||||
__version__ = '1.7.4'
|
||||
__version__ = '1.7.5'
|
||||
|
Reference in New Issue
Block a user