Document FRESH_CHANGE_PHONE_FORBIDDEN

Closes #1464.
This commit is contained in:
Lonami Exo 2020-05-17 09:27:44 +02:00
parent 634bc3a8bd
commit 856538635d
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ FLOOD_WAIT_X,420,A wait of {seconds} seconds is required
FOLDER_ID_EMPTY,400,The folder you tried to delete was already empty
FOLDER_ID_INVALID,400,The folder you tried to use was not valid
FRESH_CHANGE_ADMINS_FORBIDDEN,400,Recently logged-in users cannot add or change admins
FRESH_CHANGE_PHONE_FORBIDDEN,406,Recently logged-in users cannot use this request
FRESH_RESET_AUTHORISATION_FORBIDDEN,406,The current session is too new and cannot be used to reset other authorisations yet
GAME_BOT_INVALID,400,You cannot send that game with the current bot
GIF_ID_INVALID,400,The provided GIF ID is invalid

1 name codes description
109 FOLDER_ID_EMPTY 400 The folder you tried to delete was already empty
110 FOLDER_ID_INVALID 400 The folder you tried to use was not valid
111 FRESH_CHANGE_ADMINS_FORBIDDEN 400 Recently logged-in users cannot add or change admins
112 FRESH_CHANGE_PHONE_FORBIDDEN 406 Recently logged-in users cannot use this request
113 FRESH_RESET_AUTHORISATION_FORBIDDEN 406 The current session is too new and cannot be used to reset other authorisations yet
114 GAME_BOT_INVALID 400 You cannot send that game with the current bot
115 GIF_ID_INVALID 400 The provided GIF ID is invalid

View File

@ -43,7 +43,7 @@ account.saveAutoDownloadSettings,user,
account.saveSecureValue,user,PASSWORD_REQUIRED
account.saveTheme,user,
account.saveWallPaper,user,WALLPAPER_INVALID
account.sendChangePhoneCode,user,PHONE_NUMBER_INVALID
account.sendChangePhoneCode,user,FRESH_CHANGE_PHONE_FORBIDDEN PHONE_NUMBER_INVALID
account.sendConfirmPhoneCode,user,HASH_INVALID
account.sendVerifyEmailCode,user,EMAIL_INVALID
account.sendVerifyPhoneCode,user,

1 method usability errors
43 account.saveSecureValue user PASSWORD_REQUIRED
44 account.saveTheme user
45 account.saveWallPaper user WALLPAPER_INVALID
46 account.sendChangePhoneCode user PHONE_NUMBER_INVALID FRESH_CHANGE_PHONE_FORBIDDEN PHONE_NUMBER_INVALID
47 account.sendConfirmPhoneCode user HASH_INVALID
48 account.sendVerifyEmailCode user EMAIL_INVALID
49 account.sendVerifyPhoneCode user