@@ -38,7 +38,8 @@ async def copy_story(
3838 privacy : "enums.StoriesPrivacyRules" = None ,
3939 allowed_users : List [Union [int , str ]] = None ,
4040 disallowed_users : List [Union [int , str ]] = None ,
41- protect_content : bool = None
41+ protect_content : bool = None ,
42+ pinned : bool = None
4243 ) -> "types.Story" :
4344 """Copy story.
4445
@@ -84,6 +85,9 @@ async def copy_story(
8485 protect_content (``bool``, *optional*):
8586 Protects the contents of the sent story from forwarding and saving.
8687
88+ pinned (``bool``, *optional*):
89+ If True, the story will be pinned.
90+
8791 parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
8892 By default, texts are parsed using both Markdown and HTML styles.
8993 You can combine both syntaxes together.
@@ -112,5 +116,6 @@ async def copy_story(
112116 caption_entities = caption_entities ,
113117 privacy = privacy ,
114118 allowed_users = allowed_users ,
115- disallowed_users = disallowed_users
119+ disallowed_users = disallowed_users ,
120+ pinned = pinned
116121 )
0 commit comments