Skip to main content

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

NameTypeRequiredDescription
AddToRecentboolWhether to add this reaction to the recent reactions list ».
PeerInputPeerClassyesThe peer that sent the story
StoryIDintyesID of the story to react to
ReactionReactionClassyesReaction

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.
400REACTION_INVALIDThe specified reaction is invalid.
400STORIES_NEVER_CREATEDThis peer hasn't ever posted any stories.
400STORY_ID_EMPTYYou specified no story IDs.
400STORY_ID_INVALIDThe specified story ID is invalid.

References