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_FRIENDSandSELECTED_USERSonlydisallowed_users (List of
int|str, optional) – List of user_id whos disallow to view the stories. Note: Works withPUBLICandCONTACTSonly
- Returns:
On success, the edited
Storyis returned.- Raises:
RPCError – In case of a Telegram RPC error.