Skip to main content

messages.updateSavedReactionTag

Update the description of a saved message tag ».

func (c *Client) MessagesUpdateSavedReactionTag(ctx context.Context, request *MessagesUpdateSavedReactionTagRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesUpdateSavedReactionTag(ctx, &tg.MessagesUpdateSavedReactionTagRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ReactionReactionClassyesReaction associated to the tag
TitlestringTag description, max 12 UTF-8 characters; to remove the description call the method without setting this flag.

Returns

bool

Possible errors

CodeTypeDescription
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.
400REACTION_INVALIDThe specified reaction is invalid.

References