Skip to main content

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

NameTypeRequiredDescription
SlugstringyesSlug of the link, obtained as specified here ».
LinkInputBusinessChatLinkyesNew link information.

Returns

*BusinessChatLink

Possible errors

CodeTypeDescription
400CHATLINK_SLUG_EMPTYThe specified slug is empty.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

References