Layer 231
method Users
account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink;

Parameters

Name Type Description
Link InputBusinessChatLink Info about the link to create.

Gogram 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.