From 63f24d2282f1117a7e5d0dd744c97b983adb7f27 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 30 May 2021 18:00:27 +0200 Subject: [PATCH] Add new known RPC errors and update docs --- telethon/client/telegrambaseclient.py | 2 +- telethon_generator/data/errors.csv | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/telethon/client/telegrambaseclient.py b/telethon/client/telegrambaseclient.py index bea10cbe..bcfe5a0e 100644 --- a/telethon/client/telegrambaseclient.py +++ b/telethon/client/telegrambaseclient.py @@ -89,7 +89,7 @@ class TelegramBaseClient(abc.ABC): The API ID you obtained from https://my.telegram.org. api_hash (`str`): - The API ID you obtained from https://my.telegram.org. + The API hash you obtained from https://my.telegram.org. connection (`telethon.network.connection.common.Connection`, optional): The connection instance to be used when creating a new connection diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index abebcb9f..05d5a29c 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -141,6 +141,7 @@ GAME_BOT_INVALID,400,You cannot send that game with the current bot GIF_ID_INVALID,400,The provided GIF ID is invalid GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated" GROUPCALL_FORBIDDEN,403, +GROUPCALL_JOIN_MISSING,400, GROUPCALL_SSRC_DUPLICATE_MUCH,400, GROUPED_MEDIA_INVALID,400,Invalid grouped media GROUP_CALL_INVALID,400,Group call invalid @@ -315,6 +316,7 @@ STICKER_ID_INVALID,400,The provided sticker ID is invalid STICKER_INVALID,400,The provided sticker is invalid STICKER_PNG_DIMENSIONS,400,Sticker png dimensions invalid STICKER_PNG_NOPNG,400,Stickers must be a png file but the used image was not a png +STICKER_TGS_NODOC,400, STICKER_TGS_NOTGS,400,Stickers must be a tgs file but the used file was not a tgs STICKER_THUMB_PNG_NOPNG,400,Stickerset thumb must be a png file but the used file was not png STICKER_THUMB_TGS_NOTGS,400,Stickerset thumb must be a tgs file but the used file was not tgs