account.updateBusinessLocation
Businesses » may advertise their location using this method, see here » for more info. To remove business location information invoke the method without setting any of the parameters.
func (c *Client) AccountUpdateBusinessLocation(ctx context.Context, request *AccountUpdateBusinessLocationRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountUpdateBusinessLocation(ctx, &tg.AccountUpdateBusinessLocationRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
GeoPoint | InputGeoPointClass | — | Optional, contains a set of geographical coordinates. |
Address | string | — | Mandatory when setting/updating the location, contains a textual description of the address (max 96 UTF-8 chars). |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.updateBusinessLocation#9e6b131a