From ec8bb8a06abcce7bde4179a6eb7232002fcf86ed Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 25 Jul 2020 18:42:12 +0200 Subject: [PATCH] Document PRIVACY_TOO_LONG --- 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 94f98d95..e686d3f2 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -223,6 +223,7 @@ POLL_OPTION_INVALID,400,A poll option used invalid data (the data may be too lon POLL_QUESTION_INVALID,400,The poll question was either empty or too long POLL_UNSUPPORTED,400,This layer does not support polls in the issued method PRIVACY_KEY_INVALID,400,The privacy key is invalid +PRIVACY_TOO_LONG,400,Cannot add that many entities in a single request PTS_CHANGE_EMPTY,500,No PTS change QUERY_ID_EMPTY,400,The query ID is empty QUERY_ID_INVALID,400,The query ID is invalid diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index 16a95026..9247d35f 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -50,7 +50,7 @@ account.sendVerifyPhoneCode,user, account.setAccountTTL,user,TTL_DAYS_INVALID account.setContactSignUpNotification,user, account.setContentSettings,user, -account.setPrivacy,user,PRIVACY_KEY_INVALID +account.setPrivacy,user,PRIVACY_KEY_INVALID PRIVACY_TOO_LONG account.unregisterDevice,user,TOKEN_INVALID account.updateDeviceLocked,user, account.updateNotifySettings,user,PEER_ID_INVALID