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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Channel/user from where to delete stories. |
ID | []int | yes | IDs of stories to delete. |
Returns
[]int
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | BOT_ACCESS_FORBIDDEN | The 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. |
| 400 | BUSINESS_CONNECTION_INVALID | The connection_id passed to the wrapping invokeWithBusinessConnection call is invalid. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.deleteStories#ae59db5f