From d4f2f25ac46d5e0afa0709157955883aab02c2ef Mon Sep 17 00:00:00 2001 From: blank X Date: Fri, 15 Oct 2021 09:50:28 +0700 Subject: [PATCH] Set supports_streaming to None if not mp4 --- redditbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):