Skip to main content

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

NameTypeRequiredDescription
ShortcutIDintyesShortcut ID

Returns

bool

Possible errors

CodeTypeDescription
400SHORTCUT_INVALIDThe specified shortcut is invalid.

References