From bbe3a8a487b2624b24ce0b47975de53647fb21c3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 24 Mar 2018 15:10:27 +0100 Subject: [PATCH] Set supports_streaming to True by default --- pyrogram/client/client.py | 6 +++--- pyrogram/client/input_media.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 70253563..24d84a02 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -1414,7 +1414,7 @@ class Client: width: int = 0, height: int = 0, thumb: str = None, - supports_streaming: bool = None, + supports_streaming: bool = True, disable_notification: bool = None, reply_to_message_id: int = None, progress: callable = None): @@ -1495,7 +1495,7 @@ class Client: thumb=file_thumb, attributes=[ types.DocumentAttributeVideo( - supports_streaming=supports_streaming, + supports_streaming=supports_streaming or None, duration=duration, w=width, h=height @@ -1748,7 +1748,7 @@ class Client: mime_type=mimetypes.types_map[".mp4"], attributes=[ types.DocumentAttributeVideo( - supports_streaming=i.supports_streaming, + supports_streaming=i.supports_streaming or None, duration=i.duration, w=i.width, h=i.height diff --git a/pyrogram/client/input_media.py b/pyrogram/client/input_media.py index da270c2e..f4110f1b 100644 --- a/pyrogram/client/input_media.py +++ b/pyrogram/client/input_media.py @@ -81,7 +81,7 @@ class InputMedia: width: int = 0, height: int = 0, duration: int = 0, - supports_streaming: bool = None): + supports_streaming: bool = True): self.media = media self.caption = caption self.parse_mode = parse_mode