@@ -46,6 +46,7 @@ async def send_animation(
4646 disable_notification : bool = None ,
4747 reply_to_message_id : int = None ,
4848 schedule_date : int = None ,
49+ protect_content : bool = None ,
4950 reply_markup : Union [
5051 "types.InlineKeyboardMarkup" ,
5152 "types.ReplyKeyboardMarkup" ,
@@ -116,6 +117,9 @@ async def send_animation(
116117 schedule_date (``int``, *optional*):
117118 Date when the message will be automatically sent. Unix time.
118119
120+ protect_content (``bool``, *optional*):
121+ Protects the contents of the sent message from forwarding and saving.
122+
119123 reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
120124 Additional interface options. An object for an inline keyboard, custom reply keyboard,
121125 instructions to remove reply keyboard or to force a reply from the user.
@@ -222,6 +226,7 @@ def progress(current, total):
222226 reply_to_msg_id = reply_to_message_id ,
223227 random_id = self .rnd_id (),
224228 schedule_date = schedule_date ,
229+ noforwards = protect_content ,
225230 reply_markup = await reply_markup .write (self ) if reply_markup else None ,
226231 ** await utils .parse_text_entities (self , caption , parse_mode , caption_entities )
227232 )
0 commit comments