diff --git a/telebot/types.py b/telebot/types.py index 8a5cfa4..2938674 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -5999,7 +5999,7 @@ class InputMediaAnimation(InputMedia): ret['height'] = self.height if self.duration: ret['duration'] = self.duration - if self.has_spoiler: + if self.has_spoiler is not None: ret['has_spoiler'] = self.has_spoiler return ret