mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change user, chat in except.Throttled
This commit is contained in:
parent
8e41c75e21
commit
515b16ad8d
1 changed files with 2 additions and 2 deletions
|
|
@ -546,8 +546,8 @@ class Throttled(TelegramAPIError):
|
|||
self.result = kwargs.pop(RESULT, False)
|
||||
self.exceeded_count = kwargs.pop(EXCEEDED_COUNT, 0)
|
||||
self.delta = kwargs.pop(DELTA, 0)
|
||||
self.user = kwargs.pop('user', None)
|
||||
self.chat = kwargs.pop('chat', None)
|
||||
self.user_id = kwargs.pop('user_id', None)
|
||||
self.chat_id = kwargs.pop('chat_id', None)
|
||||
|
||||
def __str__(self):
|
||||
return f"Rate limit exceeded! (Limit: {self.rate} s, " \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue