mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Rename 'skip_items' -> 'exclude'.
This commit is contained in:
parent
9b6548d0b8
commit
579b294d26
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
DEFAULT_FILTER = ['self']
|
||||
|
||||
|
||||
def generate_payload(skip_items=None, **kwargs):
|
||||
if skip_items is None:
|
||||
skip_items = []
|
||||
return {key: value for key, value in kwargs.items() if key not in skip_items + DEFAULT_FILTER and value}
|
||||
def generate_payload(exclude=None, **kwargs):
|
||||
if exclude is None:
|
||||
exclude = []
|
||||
return {key: value for key, value in kwargs.items() if key not in exclude + DEFAULT_FILTER and value}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue