Update telebot/types.py

This commit is contained in:
_run 2023-01-02 17:55:30 +04:00 committed by GitHub
parent 267a33c329
commit 3be5015f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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