From accb2142e790b95c9e2d9a300c7fd31bdf2069f2 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 23 Aug 2020 11:37:59 +0200 Subject: [PATCH] Document new known RPC error --- 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 993ddec5..5687c0a0 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -30,6 +30,7 @@ BOT_MISSING,400,This method can only be run by a bot BOT_PAYMENTS_DISABLED,400,This method can only be run by a bot 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_FORBIDDEN,403,The request cannot be used in broadcast channels 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 diff --git a/telethon_generator/data/methods.csv b/telethon_generator/data/methods.csv index e2d58e6b..83317861 100644 --- a/telethon_generator/data/methods.csv +++ b/telethon_generator/data/methods.csv @@ -227,7 +227,7 @@ messages.getPeerDialogs,user,CHANNEL_PRIVATE PEER_ID_INVALID messages.getPeerSettings,user,CHANNEL_INVALID PEER_ID_INVALID messages.getPinnedDialogs,user, messages.getPollResults,user, -messages.getPollVotes,user, +messages.getPollVotes,user,BROADCAST_FORBIDDEN messages.getRecentLocations,user, messages.getRecentStickers,user, messages.getSavedGifs,user,