Layer 224
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
BoolGogram Example
// ChannelsEditLocation - positional arguments result, err := client.ChannelsEditLocation(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, &tg.InputGeoPoint{Lat: 40.7128, Long: -74.0060}, "Hello, World!") if err != nil { // handle error } // result is *tg.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. |