messages.getFutureChatCreatorAfterLeave
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.
func (c *Client) MessagesGetFutureChatCreatorAfterLeave(ctx context.Context, peer InputPeerClass) (UserClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetFutureChatCreatorAfterLeave(ctx, peer)
if err != nil {
return err
}
_ = res // UserClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The basic group/supergroup/channel we're about to leave. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getFutureChatCreatorAfterLeave#3b7d0ea6