Story.edit_privacy()#

Story.edit_privacy()#

Bound method edit_privacy of Story.

Use as a shortcut for:

await client.edit_story_privacy(
    story_id=story.id,
    privacy=enums.StoriesPrivacyRules.PUBLIC
)

Example

await story.edit_privacy(enums.StoriesPrivacyRules.PUBLIC)
Parameters:
  • privacy (StoriesPrivacyRules, optional) – Story privacy. Defaults to PUBLIC.

  • 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 SELECTED_USERS. Works with CLOSE_FRIENDS and SELECTED_USERS only

  • disallowed_users (List of int | str, optional) – List of user_id whos disallow to view the stories. Note: Works with PUBLIC and CONTACTS only

Returns:

On success, the edited Story is returned.

Raises:

RPCError – In case of a Telegram RPC error.