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
| Name | Type | Required | Description |
|---|---|---|---|
Link | InputBusinessChatLink | yes | Info about the link to create. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHATLINKS_TOO_MUCH | Too many business chat links were created, please delete some older links. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.createBusinessChatLink#8851e68e