diff --git a/aiogram/utils/payload.py b/aiogram/utils/payload.py index 26907971..39af37d3 100644 --- a/aiogram/utils/payload.py +++ b/aiogram/utils/payload.py @@ -4,4 +4,7 @@ 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} + return {key: value for key, value in kwargs.items() if + key not in exclude + DEFAULT_FILTER + and value + and not key.startswith('_')}