@@ -4679,6 +4679,8 @@ async def copy(
46794679 parse_mode : Optional ["enums.ParseMode" ] = None ,
46804680 caption_entities : list ["types.MessageEntity" ] = None ,
46814681 show_caption_above_media : bool = None ,
4682+ video_cover : Optional [Union [str , "io.BytesIO" ]] = None ,
4683+ video_start_timestamp : int = None ,
46824684 disable_notification : bool = None ,
46834685 reply_parameters : "types.ReplyParameters" = None ,
46844686 reply_markup : Union [
@@ -4733,6 +4735,12 @@ async def copy(
47334735 show_caption_above_media (``bool``, *optional*):
47344736 Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.
47354737
4738+ video_cover (``str`` | :obj:`io.BytesIO`, *optional*):
4739+ New cover for the copied video in the message. Pass None to skip cover uploading and use the existing cover.
4740+
4741+ video_start_timestamp (``int``, *optional*):
4742+ New start timestamp, from which the video playing must start, in seconds for the copied video in the message.
4743+
47364744 disable_notification (``bool``, *optional*):
47374745 Sends the message silently.
47384746 Users will receive a notification with no sound.
@@ -4827,7 +4835,29 @@ async def copy(
48274835 elif self .document :
48284836 file_id = self .document .file_id
48294837 elif self .video :
4830- file_id = self .video .file_id
4838+ return await self ._client .send_video (
4839+ chat_id ,
4840+ video = self .video .file_id ,
4841+ caption = caption ,
4842+ parse_mode = parse_mode ,
4843+ caption_entities = caption_entities ,
4844+ show_caption_above_media = show_caption_above_media or self .show_caption_above_media ,
4845+ cover = video_cover ,
4846+ start_timestamp = video_start_timestamp ,
4847+ has_spoiler = self .has_media_spoiler ,
4848+ disable_notification = disable_notification ,
4849+ protect_content = self .has_protected_content if protect_content is None else protect_content ,
4850+ allow_paid_broadcast = allow_paid_broadcast ,
4851+ message_thread_id = self .message_thread_id if message_thread_id is None else message_thread_id ,
4852+ business_connection_id = self .business_connection_id if business_connection_id is None else business_connection_id ,
4853+ send_as = send_as ,
4854+ message_effect_id = self .effect_id ,
4855+ reply_parameters = reply_parameters ,
4856+ reply_markup = self .reply_markup if reply_markup is object else reply_markup ,
4857+ # TODO
4858+ schedule_date = schedule_date ,
4859+ reply_to_message_id = reply_to_message_id
4860+ )
48314861 elif self .animation :
48324862 file_id = self .animation .file_id
48334863 elif self .voice :
0 commit comments