Skip to main content

channels.editLocation

Edit location of geogroup, see here » for more info on geogroups.

func (c *Client) ChannelsEditLocation(ctx context.Context, request *ChannelsEditLocationRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ChannelsEditLocation(ctx, &tg.ChannelsEditLocationRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
ChannelInputChannelClassyesGeogroup
GeoPointInputGeoPointClassyesNew geolocation
AddressstringyesAddress string

Returns

bool

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400MEGAGROUP_GEO_REQUIREDThis method can only be invoked on a geogroup.
400MEGAGROUP_REQUIREDYou can only use this method on a supergroup.

References