mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Update callback_data.py
Can't pass 0 to value, raises error 'ValueError: Value for {part} is not passed!'
This commit is contained in:
parent
78aee861bb
commit
db18d54b21
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class CallbackData:
|
|||
|
||||
for part in self._part_names:
|
||||
value = kwargs.pop(part, None)
|
||||
if not value:
|
||||
if value is None:
|
||||
if args:
|
||||
value = args.pop(0)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue