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
| Name | Type | Required | Description |
|---|---|---|---|
Shortcut | string | yes | Shorcut name (not ID!). |
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.checkQuickReplyShortcut#f1d0fbd3