stories.sendReaction
React to a story.
func (c *Client) StoriesSendReaction(ctx context.Context, request *StoriesSendReactionRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesSendReaction(ctx, &tg.StoriesSendReactionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
AddToRecent | bool | — | Whether to add this reaction to the recent reactions list ». |
Peer | InputPeerClass | yes | The peer that sent the story |
StoryID | int | yes | ID of the story to react to |
Reaction | ReactionClass | yes | Reaction |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_INVALID | The specified reaction is invalid. |
| 400 | STORIES_NEVER_CREATED | This peer hasn't ever posted any stories. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.sendReaction#7fd736b2