@@ -558,6 +558,8 @@ def send_video(self,
558558 reply_to_message_id = None ,
559559 reply_markup = None ,
560560 timeout = 20. ,
561+ width = None ,
562+ height = None ,
561563 ** kwargs ):
562564 """Use this method to send video files, Telegram clients support mp4
563565 videos (other formats may be sent as telegram.Document).
@@ -568,6 +570,8 @@ def send_video(self,
568570 already on the Telegram servers, or upload a new video file using
569571 multipart/form-data.
570572 duration (Optional[int]): Duration of sent video in seconds.
573+ width (Optional[int)): Video width.
574+ height (Optional[int]): Video height.
571575 caption (Optional[str]): Video caption (may also be used when resending videos by
572576 file_id).
573577 disable_notification (Optional[bool]): Sends the message silently. iOS users will not
@@ -594,6 +598,10 @@ def send_video(self,
594598 data ['duration' ] = duration
595599 if caption :
596600 data ['caption' ] = caption
601+ if width :
602+ data ['width' ] = width
603+ if height :
604+ data ['height' ] = height
597605
598606 return self ._message_wrapper (
599607 url ,
@@ -606,6 +614,8 @@ def send_video(self,
606614 reply_to_message_id = reply_to_message_id ,
607615 reply_markup = reply_markup ,
608616 timeout = timeout ,
617+ width = width ,
618+ height = height ,
609619 ** kwargs )
610620
611621 @log
0 commit comments