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 toPUBLIC
.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 withSELECTED_USERS
. Works withCLOSE_FRIENDS
andSELECTED_USERS
onlydisallowed_users (List of
int
|str
, optional) – List of user_id whos disallow to view the stories. Note: Works withPUBLIC
andCONTACTS
only
- Returns:
On success, the edited
Story
is returned.- Raises:
RPCError – In case of a Telegram RPC error.