Story.edit_privacy()

Story.edit_privacy()

Bound method edit_privacy of Story.

Use as a shortcut for:

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

Example

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

  • allowed_users (List of int, optional) – List of user_id whos allowed to view the story.

  • denied_users (List of int, optional) – List of user_id whos denied to view the story.

Returns:

On success, the edited Story is returned.

Raises:

RPCError – In case of a Telegram RPC error.