mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Set supports_streaming to True by default
This commit is contained in:
parent
813b7958e3
commit
bbe3a8a487
@ -1414,7 +1414,7 @@ class Client:
|
|||||||
width: int = 0,
|
width: int = 0,
|
||||||
height: int = 0,
|
height: int = 0,
|
||||||
thumb: str = None,
|
thumb: str = None,
|
||||||
supports_streaming: bool = None,
|
supports_streaming: bool = True,
|
||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
reply_to_message_id: int = None,
|
reply_to_message_id: int = None,
|
||||||
progress: callable = None):
|
progress: callable = None):
|
||||||
@ -1495,7 +1495,7 @@ class Client:
|
|||||||
thumb=file_thumb,
|
thumb=file_thumb,
|
||||||
attributes=[
|
attributes=[
|
||||||
types.DocumentAttributeVideo(
|
types.DocumentAttributeVideo(
|
||||||
supports_streaming=supports_streaming,
|
supports_streaming=supports_streaming or None,
|
||||||
duration=duration,
|
duration=duration,
|
||||||
w=width,
|
w=width,
|
||||||
h=height
|
h=height
|
||||||
@ -1748,7 +1748,7 @@ class Client:
|
|||||||
mime_type=mimetypes.types_map[".mp4"],
|
mime_type=mimetypes.types_map[".mp4"],
|
||||||
attributes=[
|
attributes=[
|
||||||
types.DocumentAttributeVideo(
|
types.DocumentAttributeVideo(
|
||||||
supports_streaming=i.supports_streaming,
|
supports_streaming=i.supports_streaming or None,
|
||||||
duration=i.duration,
|
duration=i.duration,
|
||||||
w=i.width,
|
w=i.width,
|
||||||
h=i.height
|
h=i.height
|
||||||
|
@ -81,7 +81,7 @@ class InputMedia:
|
|||||||
width: int = 0,
|
width: int = 0,
|
||||||
height: int = 0,
|
height: int = 0,
|
||||||
duration: int = 0,
|
duration: int = 0,
|
||||||
supports_streaming: bool = None):
|
supports_streaming: bool = True):
|
||||||
self.media = media
|
self.media = media
|
||||||
self.caption = caption
|
self.caption = caption
|
||||||
self.parse_mode = parse_mode
|
self.parse_mode = parse_mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user