From 07b9f3ee3eadabb0304598b5e422be685c3607fb Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 24 Jan 2018 04:00:54 +0200 Subject: [PATCH] Fix payload generator. --- aiogram/utils/payload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/payload.py b/aiogram/utils/payload.py index 8ab7467d..277573c9 100644 --- a/aiogram/utils/payload.py +++ b/aiogram/utils/payload.py @@ -19,7 +19,7 @@ def generate_payload(exclude=None, **kwargs): exclude = [] return {key: value for key, value in kwargs.items() if key not in exclude + DEFAULT_FILTER - and value + and value is not None and not key.startswith('_')}