Skip to main content

messages.checkQuickReplyShortcut

Before offering the user the choice to add a message to a quick reply shortcut, to make sure that none of the limits specified here » were reached.

func (c *Client) MessagesCheckQuickReplyShortcut(ctx context.Context, shortcut string) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesCheckQuickReplyShortcut(ctx, shortcut)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ShortcutstringyesShorcut name (not ID!).

Returns

bool

Possible errors

CodeTypeDescription
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

References