@@ -47,6 +47,7 @@ async def send_document(
4747 partial_reply : str = None ,
4848 schedule_date : datetime = None ,
4949 protect_content : bool = None ,
50+ message_effect_id : int = None ,
5051 reply_markup : Union [
5152 "types.InlineKeyboardMarkup" ,
5253 "types.ReplyKeyboardMarkup" ,
@@ -118,6 +119,9 @@ async def send_document(
118119 protect_content (``bool``, *optional*):
119120 Protects the contents of the sent message from forwarding and saving.
120121
122+ message_effect_id (``int``, *optional*):
123+ Unique identifier of the message effect to add to the message.
124+
121125 reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
122126 Additional interface options. An object for an inline keyboard, custom reply keyboard,
123127 instructions to remove reply keyboard or to force a reply from the user.
@@ -211,6 +215,7 @@ async def progress(current, total):
211215 schedule_date = utils .datetime_to_timestamp (schedule_date ),
212216 noforwards = protect_content ,
213217 reply_markup = await reply_markup .write (self ) if reply_markup else None ,
218+ effect = message_effect_id ,
214219 ** await utils .parse_text_entities (self , caption , parse_mode , caption_entities )
215220 )
216221 )
0 commit comments