account.resolveBusinessChatLink
Resolve a business chat deep link ».
func (c *Client) AccountResolveBusinessChatLink(ctx context.Context, slug string) (*AccountResolvedBusinessChatLinks, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountResolveBusinessChatLink(ctx, slug)
if err != nil {
return err
}
_ = res // *AccountResolvedBusinessChatLinks
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Slug | string | yes | Slug of the link, obtained as specified here ». |
Returns
*AccountResolvedBusinessChatLinks
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHATLINK_SLUG_EMPTY | The specified slug is empty. |
| 400 | CHATLINK_SLUG_EXPIRED | The specified business chat link has expired. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.resolveBusinessChatLink#5492e5ee