hide_my_story_view()#

Client.hide_my_story_view()#

Activates stealth mode for stories, which hides all views of stories from the current user in the last “stories_stealth_past_period” seconds and for the next “stories_stealth_future_period” seconds; for Telegram Premium users only.

Usable by Users Bots
Parameters:
  • past (bool, optional) – Pass True to erase views from any stories opened in the past stories_stealth_past_period seconds, as specified by the client configuration.

  • future (bool, optional) – Pass True to hide future story views for the next stories_stealth_future_period seconds, as specified by the client configuration.

Returns:

StoryStealthMode – On success, the information about stealth mode session is returned.

Example

# Erase and hide story views in the past stories_stealth_past_period and the next stories_stealth_future_period seconds
await app.hide_my_story_view()
Raises:

RPCError – In case of Telegram RPCError.