messages.reorderQuickReplies
Reorder quick reply shortcuts. This will emit an updateQuickReplies update to other logged-in sessions.
func (c *Client) MessagesReorderQuickReplies(ctx context.Context, order []int) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesReorderQuickReplies(ctx, order)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Order | []int | yes | IDs of all created quick reply shortcuts, in the desired order. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.reorderQuickReplies#60331907