Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesThe basic group/supergroup/channel we're about to leave.

Returns

UserClass

References