messages.editQuickReplyShortcut
Rename a quick reply shortcut. This will emit an updateQuickReplies update to other logged-in sessions.
func (c *Client) MessagesEditQuickReplyShortcut(ctx context.Context, request *MessagesEditQuickReplyShortcutRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesEditQuickReplyShortcut(ctx, &tg.MessagesEditQuickReplyShortcutRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ShortcutID | int | yes | Shortcut ID. |
Shortcut | string | yes | New shortcut name. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
| 400 | SHORTCUT_INVALID | The specified shortcut is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.editQuickReplyShortcut#5c003cef