Layer 220
method Users
stories.sendReaction#7fd736b2 flags:# add_to_recent:flags.0?true peer:InputPeer story_id:int reaction:Reaction = Updates;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
AddToRecent flags.0?true Whether to add this reaction to the recent reactions list.
Peer InputPeer The peer that sent the story
StoryId int ID of the story to react to
Reaction Reaction Reaction

Returns

Updates

Possible 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