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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Owned group/supergroup/channel. |
UserID | InputUserClass | yes | ID of the new owner. |
Password | InputCheckPasswordSRPClass | yes | The current account's 2FA password. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
messages.editChatCreator#f743b857