Group/channel owners only: returns the ID of the user that will become the new owner of the group if we decide to leave the group, see here » for more info on the full flow.
Method schema is available as of layer 223. Switch »
| Name | Type | Description |
|---|---|---|
| peer | InputPeer | The basic group/supergroup/channel we're about to leave. |
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_ID_INVALID | The specified supergroup ID is invalid. |
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.