Skip to content

account.updateUsername

No description provided by the pinned schema.

account.updateUsername#3e0bdd7c username:string = User;

User

NameTypeFlagDefaultDescription
usernamestringNo description provided by the pinned schema.
from miniproto.raw.functions import AccountUpdateUsername

Public access: miniproto.raw.functions.AccountUpdateUsername.

from miniproto.raw.functions import AccountUpdateUsername
# Naming the raw request class is local only; it performs no I/O or network request.
request_type = AccountUpdateUsername

User

CodeErrorDescription
400USERNAME_INVALIDThe provided username is not valid.
400USERNAME_NOT_MODIFIEDThe username was not modified.
400USERNAME_OCCUPIEDThe provided username is already occupied.
400USERNAME_PURCHASE_AVAILABLEThe specified username can be purchased on https://fragment.com.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

No non-primitive type relationships were found.

User Known selected constructors: user, userEmpty

account.changePhone, account.updateProfile, bots.createBot, bots.getAdminedBots, channels.getMessageAuthor, contacts.importContactToken, messages.getFutureChatCreatorAfterLeave, users.getUsers

  • user only
  • tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
  • tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery