Skip to content

Commit

Permalink
Update edit_story_privacy description
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Dec 10, 2023
1 parent 467e2a0 commit 1000bb1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pyrogram/methods/stories/edit_story_privacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ async def edit_story_privacy(
privacy (:obj:`~pyrogram.enums.StoriesPrivacyRules`, *optional*):
Story privacy.
allowed_users (List of ``int``, *optional*):
allowed_users (List of ``int`` | ``str``, *optional*):
List of user_id or chat_id of chat users who are allowed to view stories.
Note: chat_id available only with :obj:`~pyrogram.enums.StoriesPrivacyRules.SELECTED_USERS`.
Works with :obj:`~pyrogram.enums.StoriesPrivacyRules.CLOSE_FRIENDS`
and :obj:`~pyrogram.enums.StoriesPrivacyRules.SELECTED_USERS` only
disallowed_users (List of ``int``, *optional*):
disallowed_users (List of ``int`` | ``str``, *optional*):
List of user_id whos disallow to view the stories.
Note: Works with :obj:`~pyrogram.enums.StoriesPrivacyRules.PUBLIC`
and :obj:`~pyrogram.enums.StoriesPrivacyRules.CONTACTS` only
Expand All @@ -68,9 +68,7 @@ async def edit_story_privacy(
await app.edit_story_privacy(chat_id, story_id, enums.StoriesPrivacyRules.PUBLIC)
# Edit the privacy of the story to allow selected users to view the story
await app.edit_story_privacy(chat_id, story_id, enums.StoriesPrivacyRules.SELECTED_USERS,
allowed_users=[123, 456])
await app.edit_story_privacy(chat_id, story_id, enums.StoriesPrivacyRules.SELECTED_USERS, allowed_users=[123, 456])
"""
privacy_rules = []

Expand Down

0 comments on commit 1000bb1

Please sign in to comment.