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
| Name | Type | Required | Description |
|---|---|---|---|
Channel | InputChannelClass | yes | Geogroup |
GeoPoint | InputGeoPointClass | yes | New geolocation |
Address | string | yes | Address string |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
| 400 | MEGAGROUP_GEO_REQUIRED | This method can only be invoked on a geogroup. |
| 400 | MEGAGROUP_REQUIRED | You can only use this method on a supergroup. |
References
- Official documentation
- Generated Go reference
- TL definition:
channels.editLocation#58e63f6d