Update documentation and list of known errors

Closes #3151.
This commit is contained in:
Lonami Exo
2021-09-11 11:02:10 +02:00
parent 28d3d4b122
commit 3f5f5dbe48
5 changed files with 20 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ GIF_CONTENT_TYPE_INVALID,400,
GIF_ID_INVALID,400,The provided GIF ID is invalid
GRAPH_INVALID_RELOAD,400,
GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated"
GROUPCALL_ADD_PARTICIPANTS_FAILED,500,
GROUPCALL_ALREADY_DISCARDED,400,
GROUPCALL_FORBIDDEN,403,
GROUPCALL_JOIN_MISSING,400,
@@ -359,9 +360,11 @@ TMP_PASSWORD_DISABLED,400,The temporary password is disabled
TMP_PASSWORD_INVALID,400,Password auth needs to be regenerated
TOKEN_INVALID,400,The provided token is invalid
TTL_DAYS_INVALID,400,The provided TTL is invalid
TTL_MEDIA_INVALID,400,The provided media cannot be used with a TTL
TTL_PERIOD_INVALID,400,The provided TTL Period is invalid
TYPES_EMPTY,400,The types field is empty
TYPE_CONSTRUCTOR_INVALID,400,The type constructor is invalid
UNKNOWN_ERROR,400,
UNKNOWN_METHOD,500,The method you tried to call cannot be called on non-CDN DCs
UNTIL_DATE_INVALID,400,That date cannot be specified in this request (try using None)
URL_INVALID,400,The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)
1 name codes description
151 GIF_ID_INVALID 400 The provided GIF ID is invalid
152 GRAPH_INVALID_RELOAD 400
153 GRAPH_OUTDATED_RELOAD 400 Data can't be used for the channel statistics, graphs outdated
154 GROUPCALL_ADD_PARTICIPANTS_FAILED 500
155 GROUPCALL_ALREADY_DISCARDED 400
156 GROUPCALL_FORBIDDEN 403
157 GROUPCALL_JOIN_MISSING 400
360 TMP_PASSWORD_INVALID 400 Password auth needs to be regenerated
361 TOKEN_INVALID 400 The provided token is invalid
362 TTL_DAYS_INVALID 400 The provided TTL is invalid
363 TTL_MEDIA_INVALID 400 The provided media cannot be used with a TTL
364 TTL_PERIOD_INVALID 400 The provided TTL Period is invalid
365 TYPES_EMPTY 400 The types field is empty
366 TYPE_CONSTRUCTOR_INVALID 400 The type constructor is invalid
367 UNKNOWN_ERROR 400
368 UNKNOWN_METHOD 500 The method you tried to call cannot be called on non-CDN DCs
369 UNTIL_DATE_INVALID 400 That date cannot be specified in this request (try using None)
370 URL_INVALID 400 The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)