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
| Name | Type | Required | Description |
|---|---|---|---|
Reaction | ReactionClass | yes | Reaction associated to the tag |
Title | string | — | Tag description, max 12 UTF-8 characters; to remove the description call the method without setting this flag. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
| 400 | REACTION_INVALID | The specified reaction is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.updateSavedReactionTag#60297dec