@@ -1401,8 +1401,11 @@ async def reply_document(
14011401 caption : str = "" ,
14021402 parse_mode : Optional [str ] = object ,
14031403 caption_entities : List ["types.MessageEntity" ] = None ,
1404+ file_name : str = None ,
1405+ force_document : bool = None ,
14041406 disable_notification : bool = None ,
14051407 reply_to_message_id : int = None ,
1408+ schedule_date : int = None ,
14061409 reply_markup : Union [
14071410 "types.InlineKeyboardMarkup" ,
14081411 "types.ReplyKeyboardMarkup" ,
@@ -1458,13 +1461,25 @@ async def reply_document(
14581461
14591462 caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
14601463 List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
1464+
1465+ file_name (``str``, *optional*):
1466+ File name of the document sent.
1467+ Defaults to file's path basename.
1468+
1469+ force_document (``bool``, *optional*):
1470+ Pass True to force sending files as document. Useful for video files that need to be sent as
1471+ document messages instead of video messages.
1472+ Defaults to False.
14611473
14621474 disable_notification (``bool``, *optional*):
14631475 Sends the message silently.
14641476 Users will receive a notification with no sound.
14651477
14661478 reply_to_message_id (``int``, *optional*):
14671479 If the message is a reply, ID of the original message.
1480+
1481+ schedule_date (``int``, *optional*):
1482+ Date when the message will be automatically sent. Unix time.
14681483
14691484 reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
14701485 Additional interface options. An object for an inline keyboard, custom reply keyboard,
@@ -1513,8 +1528,11 @@ async def reply_document(
15131528 caption = caption ,
15141529 parse_mode = parse_mode ,
15151530 caption_entities = caption_entities ,
1531+ file_name = file_name ,
1532+ force_document = force_document ,
15161533 disable_notification = disable_notification ,
15171534 reply_to_message_id = reply_to_message_id ,
1535+ schedule_date = schedule_date ,
15181536 reply_markup = reply_markup ,
15191537 progress = progress ,
15201538 progress_args = progress_args
0 commit comments