Layer 220
StoriesSendReaction
React to a story.
method
Users
stories.sendReaction#7fd736b2 flags:# add_to_recent:flags.0?true peer:InputPeer story_id:int reaction:Reaction = Updates;
Parameters
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_INVALID | The specified reaction is invalid. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
Gogram Example
// StoriesSendReaction - using Params struct result, err := client.StoriesSendReaction(&tg.StoriesSendReactionParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, StoryId: 0, Reaction: &tg.Reaction{}, // Optional fields: // AddToRecent: true, }) if err != nil { // handle error } // result is *tg.Updates