Skip to main content

account.createBusinessChatLink

Create a business chat deep link ».

func (c *Client) AccountCreateBusinessChatLink(ctx context.Context, link InputBusinessChatLink) (*BusinessChatLink, error)

Calling this method

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

res, err := api.AccountCreateBusinessChatLink(ctx, link)
if err != nil {
return err
}
_ = res // *BusinessChatLink
return nil
})

Parameters

NameTypeRequiredDescription
LinkInputBusinessChatLinkyesInfo about the link to create.

Returns

*BusinessChatLink

Possible errors

CodeTypeDescription
400CHATLINKS_TOO_MUCHToo many business chat links were created, please delete some older links.
400DOCUMENT_INVALIDThe specified document is invalid.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

References