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

await app.enable_stealth_mode(past=True)

await app.enable_stealth_mode(future=True)

await app.enable_stealth_mode(past=True, future=True)