account.editBusinessChatLink
Edit a created business chat deep link ».
func (c *Client) AccountEditBusinessChatLink(ctx context.Context, request *AccountEditBusinessChatLinkRequest) (*BusinessChatLink, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountEditBusinessChatLink(ctx, &tg.AccountEditBusinessChatLinkRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *BusinessChatLink
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Slug | string | yes | Slug of the link, obtained as specified here ». |
Link | InputBusinessChatLink | yes | New link information. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHATLINK_SLUG_EMPTY | The specified slug is empty. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.editBusinessChatLink#8c3410af