Skip to main content

stories.deleteStories

Deletes some posted stories.

func (c *Client) StoriesDeleteStories(ctx context.Context, request *StoriesDeleteStoriesRequest) ([]int, error)

Calling this method

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

res, err := api.StoriesDeleteStories(ctx, &tg.StoriesDeleteStoriesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // []int
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesChannel/user from where to delete stories.
ID[]intyesIDs of stories to delete.

Returns

[]int

Possible errors

CodeTypeDescription
403BOT_ACCESS_FORBIDDENThe specified method can be used over a business connection for some operations, but the specified query attempted an operation that is not allowed over a business connection.
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400CHANNEL_INVALIDThe provided channel is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400STORY_ID_EMPTYYou specified no story IDs.

References