diff --git a/redditbot.py b/redditbot.py index dd4554c..c788a11 100644 --- a/redditbot.py +++ b/redditbot.py @@ -222,7 +222,7 @@ async def main(): except Exception: logging.exception('Exception when getting video data') else: - attributes.append(DocumentAttributeVideo(duration, w, h, supports_streaming=mimetype == 'video/mp4')) + attributes.append(DocumentAttributeVideo(duration, w, h, supports_streaming=mimetype == 'video/mp4' or None)) await client.send_message(chat, j, file=k, link_preview=False, attributes=attributes) async def _get_video_data(filename):