From b1ea7572dd7aacba3b535195d330a2f1bcefc819 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 26 Jul 2020 13:27:45 +0200 Subject: [PATCH] Document new rpc errors in layer 116 --- telethon_generator/data/errors.csv | 3 +++ telethon_generator/data/methods.csv | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index e686d3f2..993ddec5 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -32,6 +32,7 @@ BOT_POLLS_DISABLED,400,You cannot create polls under a bot account BOT_RESPONSE_TIMEOUT,400,The bot did not answer to the callback query in time BROADCAST_ID_INVALID,400,The channel is invalid BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public +BROADCAST_REQUIRED,400,The request can only be used with a broadcast channel BUTTON_DATA_INVALID,400,The provided button data is invalid BUTTON_TYPE_INVALID,400,The type of one of the buttons you provided is invalid BUTTON_URL_INVALID,400,Button URL invalid @@ -154,6 +155,7 @@ MEDIA_NEW_INVALID,400,The new media to edit the message with is invalid (such as MEDIA_PREV_INVALID,400,The old media cannot be edited with anything else (such as stickers or voice notes) MEGAGROUP_ID_INVALID,400,The group is invalid MEGAGROUP_PREHISTORY_HIDDEN,400,You can't set this discussion group because it's history is hidden +MEGAGROUP_REQUIRED,400,The request can only be used with a megagroup channel MEMBER_NO_LOCATION,500,An internal failure occurred while fetching user info (couldn't find location) MEMBER_OCCUPY_PRIMARY_LOC_FAILED,500,Occupation of primary member location failed MESSAGE_AUTHOR_REQUIRED,403,Message author required @@ -317,6 +319,7 @@ USER_NOT_PARTICIPANT,400,The target user is not a member of the specified megagr USER_PRIVACY_RESTRICTED,403,The user's privacy settings do not allow you to do this USER_RESTRICTED,403,"You're spamreported, you can't create channels or chats." VIDEO_CONTENT_TYPE_INVALID,400,The video content type is not supported with the given parameters (i.e. supports_streaming) +VIDEO_FILE_INVALID,400,The given video cannot be used WALLPAPER_FILE_INVALID,400,The given file cannot be used as a wallpaper WALLPAPER_INVALID,400,The input wallpaper was not valid WC_CONVERT_URL_INVALID,400,WC convert URL invalid diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index 9247d35f..e2d58e6b 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -312,14 +312,15 @@ phone.setCallRating,user,CALL_PEER_INVALID photos.deletePhotos,user, photos.getUserPhotos,both,MAX_ID_INVALID USER_ID_INVALID photos.updateProfilePhoto,user, -photos.uploadProfilePhoto,user,FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID +photos.uploadProfilePhoto,user,FILE_PARTS_INVALID IMAGE_PROCESS_FAILED PHOTO_CROP_SIZE_SMALL PHOTO_EXT_INVALID VIDEO_FILE_INVALID ping,both, reqDHParams,both, reqPq,both, reqPqMulti,both, rpcDropAnswer,both, setClientDHParams,both, -stats.getBroadcastStats,user, +stats.getBroadcastStats,user,BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED STATS_MIGRATE_X +stats.getMegagroupStats,user,CHAT_ADMIN_REQUIRED MEGAGROUP_REQUIRED STATS_MIGRATE_X stats.loadAsyncGraph,user, stickers.addStickerToSet,bot,BOT_MISSING STICKERSET_INVALID stickers.changeStickerPosition,bot,BOT_MISSING STICKER_INVALID