Layer 220
ChannelsEditLocation
Edit location of geogroup, see here for more info on geogroups.
method
Users
channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | Geogroup |
| GeoPoint | InputGeoPoint | New geolocation |
| Address | string | Address string |
Returns
BoolPossible 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. |
Gogram Example
// ChannelsEditLocation - positional arguments result, err := client.ChannelsEditLocation(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, &tg.InputGeoPoint{Lat: 0.0, Long: 0.0}, "...") if err != nil { // handle error } // result is *tg.Bool