Skip to main content

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

NameTypeRequiredDescription
GeoPointInputGeoPointClassOptional, contains a set of geographical coordinates.
AddressstringMandatory when setting/updating the location, contains a textual description of the address (max 96 UTF-8 chars).

Returns

bool

References