Layer 227
MessagesGetFutureChatCreatorAfterLeave
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
Users
messages.getFutureChatCreatorAfterLeave#3b7d0ea6 peer:InputPeer = User;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The basic group/supergroup/channel we're about to leave. |
Returns
UserGogram Example
// MessagesGetFutureChatCreatorAfterLeave - positional arguments result, err := client.MessagesGetFutureChatCreatorAfterLeave(&tg.InputPeerUser{UserID: int64(777000)}) if err != nil { // handle error } // result is *tg.User
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_ID_INVALID | The specified supergroup ID is invalid. |