Skip to main content

messages.editChatCreator

Transfer the ownership of a basic group, supergroup or channel to another user, see here » for the full flow.

func (c *Client) MessagesEditChatCreator(ctx context.Context, request *MessagesEditChatCreatorRequest) (UpdatesClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesEditChatCreator(ctx, &tg.MessagesEditChatCreatorRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesOwned group/supergroup/channel.
UserIDInputUserClassyesID of the new owner.
PasswordInputCheckPasswordSRPClassyesThe current account's 2FA password.

Returns

UpdatesClass

References