From 856538635d5ffda304b157ef73205acf2f1c5c2f Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 17 May 2020 09:27:44 +0200 Subject: [PATCH] Document FRESH_CHANGE_PHONE_FORBIDDEN Closes #1464. --- telethon_generator/data/errors.csv | 1 + telethon_generator/data/methods.csv | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 966b2324..9a5197b0 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -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 diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index 635c4a16..9896e64f 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -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,