mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 19:42:29 +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 = {
|
||||
|
Reference in New Issue
Block a user