Skip to main content

stories.togglePeerStoriesHidden

Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here » for more info.

func (c *Client) StoriesTogglePeerStoriesHidden(ctx context.Context, request *StoriesTogglePeerStoriesHiddenRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.StoriesTogglePeerStoriesHidden(ctx, &tg.StoriesTogglePeerStoriesHiddenRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer whose stories should be (un)hidden.
HiddenboolyesWhether to hide or unhide stories.

Returns

bool

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References