mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-08 10:06:41 +00:00
Fix click timeout error is now different
This commit is contained in:
@@ -844,7 +844,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
|
||||
data=data
|
||||
)
|
||||
)
|
||||
except errors.BotTimeout:
|
||||
except errors.BotResponseTimeoutError:
|
||||
return None
|
||||
|
||||
if sum(int(x is not None) for x in (i, text, filter)) >= 2:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from .. import types, functions
|
||||
from ...errors import BotTimeout
|
||||
from ...errors import BotResponseTimeoutError
|
||||
import webbrowser
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class MessageButton:
|
||||
)
|
||||
try:
|
||||
return await self._client(req)
|
||||
except BotTimeout:
|
||||
except BotResponseTimeoutError:
|
||||
return None
|
||||
elif isinstance(self.button, types.KeyboardButtonSwitchInline):
|
||||
return await self._client(functions.messages.StartBotRequest(
|
||||
@@ -99,5 +99,5 @@ class MessageButton:
|
||||
)
|
||||
try:
|
||||
return await self._client(req)
|
||||
except BotTimeout:
|
||||
except BotResponseTimeoutError:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user