enable_stealth_mode()

Client.enable_stealth_mode()

Activates stories stealth mode.

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:

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

Example

# Erase views from any stories opened in the past stories_stealth_past_period seconds
await app.enable_stealth_mode(past=True)

# Hide future story views for the next stories_stealth_future_period seconds
await app.enable_stealth_mode(future=True)

# Erase and hide story views in the past stories_stealth_past_period and the next stories_stealth_future_period seconds
await app.enable_stealth_mode(past=True, future=True)