telegram api method · layer 222 · #8f38cd1f

channels.editCreator

usable by users

Transfer channel ownership

not in the latest layer 229: last defined in layer 222

definition

channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;

parameters

nametypedescription
channelInputChannelChannel
user_idInputUserNew channel owner
passwordInputCheckPasswordSRP2FA password of account

returns

Updates

errors (20)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_MONOFORUM_UNSUPPORTEDMonoforums do not support this feature.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHANNELS_ADMIN_PUBLIC_TOO_MUCHYou're admin of too many public channels, make some channels private to change the username of this channel.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_MEMBER_ADD_FAILEDCould not add participants.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.
400PASSWORD_MISSINGYou must enable 2FA before executing this operation.
400PASSWORD_TOO_FRESH_%dThe password was modified less than 24 hours ago, try again in %d seconds.
400SESSION_TOO_FRESH_%dThis session was created less than 24 hours ago, try again in %d seconds.
400SRP_ID_INVALIDInvalid SRP ID provided.
400USER_ID_INVALIDThe provided user ID is invalid.
400USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact.
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
403USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups.
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this.

history

present in layers 102–222

idlayers
#8f38cd1f102–222