mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 03:08:51 +00:00
7 lines
225 B
Python
7 lines
225 B
Python
DEFAULT_FILTER = ['self']
|
|
|
|
|
|
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}
|