mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
add support of no argument in dp.throttled
This commit is contained in:
parent
0c715add94
commit
288c7099b0
2 changed files with 2 additions and 2 deletions
|
|
@ -1031,7 +1031,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
return self.async_task(callback)
|
||||
return callback
|
||||
|
||||
def throttled(self, on_throttled: typing.Callable, *,
|
||||
def throttled(self, on_throttled: typing.Optional[typing.Callable] = None,
|
||||
key=None, rate=None,
|
||||
user_id=None, chat_id=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue