1 parent 3f28633 commit f107070Copy full SHA for f107070
1 file changed
telegram/base.py
@@ -66,7 +66,7 @@ def to_dict(self):
66
67
for key in iter(self.__dict__):
68
value = self.__dict__[key]
69
- if value or value == '':
+ if value is not None:
70
if hasattr(value, 'to_dict'):
71
data[key] = value.to_dict()
72
else:
0 commit comments