mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix default updates (#592)
* fix: default updates * fix: removed redundant cache import
This commit is contained in:
parent
0e28756a10
commit
5f6e5a646b
1 changed files with 1 additions and 5 deletions
|
|
@ -1,7 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from functools import lru_cache
|
||||
|
||||
from . import base
|
||||
from . import fields
|
||||
from .callback_query import CallbackQuery
|
||||
|
|
@ -76,7 +74,5 @@ class AllowedUpdates(helper.Helper):
|
|||
)
|
||||
|
||||
@classmethod
|
||||
@lru_cache(1)
|
||||
def default(cls):
|
||||
excluded = cls.CHAT_MEMBER + cls.MY_CHAT_MEMBER
|
||||
return list(filter(lambda item: item not in excluded, cls.all()))
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue