messages.deleteQuickReplyShortcut
Completely delete a quick reply shortcut. This will also emit an updateDeleteQuickReply update to other logged-in sessions (and no updateDeleteQuickReplyMessages updates, even if all the messages in the shortcuts are also deleted by this method).
func (c *Client) MessagesDeleteQuickReplyShortcut(ctx context.Context, shortcutid int) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesDeleteQuickReplyShortcut(ctx, shortcutid)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ShortcutID | int | yes | Shortcut ID |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SHORTCUT_INVALID | The specified shortcut is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.deleteQuickReplyShortcut#3cc04740