Add new known RPC errors and update docs

This commit is contained in:
Lonami Exo 2021-05-30 18:00:27 +02:00
parent 3d350c6087
commit 63f24d2282
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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

1 name codes description
141 GIF_ID_INVALID 400 The provided GIF ID is invalid
142 GRAPH_OUTDATED_RELOAD 400 Data can't be used for the channel statistics, graphs outdated
143 GROUPCALL_FORBIDDEN 403
144 GROUPCALL_JOIN_MISSING 400
145 GROUPCALL_SSRC_DUPLICATE_MUCH 400
146 GROUPED_MEDIA_INVALID 400 Invalid grouped media
147 GROUP_CALL_INVALID 400 Group call invalid
316 STICKER_INVALID 400 The provided sticker is invalid
317 STICKER_PNG_DIMENSIONS 400 Sticker png dimensions invalid
318 STICKER_PNG_NOPNG 400 Stickers must be a png file but the used image was not a png
319 STICKER_TGS_NODOC 400
320 STICKER_TGS_NOTGS 400 Stickers must be a tgs file but the used file was not a tgs
321 STICKER_THUMB_PNG_NOPNG 400 Stickerset thumb must be a png file but the used file was not png
322 STICKER_THUMB_TGS_NOTGS 400 Stickerset thumb must be a tgs file but the used file was not tgs