Layer 231
AccountCreateBusinessChatLink
Create a business chat deep link.
method
Users
account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink;
Parameters
| Name | Type | Description |
|---|---|---|
| Link | InputBusinessChatLink | Info about the link to create. |
Returns
BusinessChatLinkGogram Example
link, err := client.AccountCreateBusinessChatLink(&tg.InputBusinessChatLink{ Message: "Hi! I'd like to know more about your pricing.", Title: "Pricing", }) if err != nil { log.Fatal(err) } fmt.Println(link.Link)
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. |