mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Add new parameter supports_streaming to send_video method
This commit is contained in:
parent
f35babc26a
commit
11bf40f50b
1 changed files with 5 additions and 0 deletions
|
|
@ -1086,6 +1086,7 @@ class Client:
|
|||
duration: int = 0,
|
||||
width: int = 0,
|
||||
height: int = 0,
|
||||
supports_streaming: bool = None,
|
||||
disable_notification: bool = None,
|
||||
reply_to_message_id: int = None):
|
||||
"""Use this method to send video files.
|
||||
|
|
@ -1117,6 +1118,9 @@ class Client:
|
|||
height (:obj:`int`, optional):
|
||||
Video height.
|
||||
|
||||
supports_streaming (:obj:`bool`, optional):
|
||||
Pass True, if the uploaded video is suitable for streaming.
|
||||
|
||||
disable_notification (:obj:`bool`, optional):
|
||||
Sends the message silently.
|
||||
Users will receive a notification with no sound.
|
||||
|
|
@ -1143,6 +1147,7 @@ class Client:
|
|||
file=file,
|
||||
attributes=[
|
||||
types.DocumentAttributeVideo(
|
||||
supports_streaming=supports_streaming,
|
||||
duration=duration,
|
||||
w=width,
|
||||
h=height
|
||||
|
|
|
|||
Loading…
Reference in a new issue