stories.activateStealthMode
Activates stories stealth mode, see here » for more info. Will return an updateStoriesStealthMode.
func (c *Client) StoriesActivateStealthMode(ctx context.Context, request *StoriesActivateStealthModeRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesActivateStealthMode(ctx, &tg.StoriesActivateStealthModeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Past | bool | — | Whether to erase views from any stories opened in the past stories_stealth_past_period seconds », as specified by the client configuration. |
Future | bool | — | Whether to hide future story views for the next stories_stealth_future_period seconds », as specified by the client configuration. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.activateStealthMode#57bbd166