Update docs for send_file/timeouts and add new known error

This commit is contained in:
Lonami Exo
2019-03-18 17:30:45 +01:00
parent a5f5d6ef23
commit 7c48857d0c
5 changed files with 18 additions and 14 deletions

View File

@@ -230,6 +230,7 @@ TTL_DAYS_INVALID,400,The provided TTL is invalid
TYPES_EMPTY,400,The types field is empty
TYPE_CONSTRUCTOR_INVALID,,The type constructor is invalid
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 an URL that's not t.me/yourbot or your game's URL)
USERNAME_INVALID,400,"Nobody is using this username, or the username is unacceptable. If the latter, it must match r""[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]"""
USERNAME_NOT_MODIFIED,400,The username is not different from the current username
1 name codes description
230 TYPES_EMPTY 400 The types field is empty
231 TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
232 UNKNOWN_METHOD 500 The method you tried to call cannot be called on non-CDN DCs
233 UNTIL_DATE_INVALID 400 That date cannot be specified in this request (try using None)
234 URL_INVALID 400 The URL used was invalid (e.g. when answering a callback with an URL that's not t.me/yourbot or your game's URL)
235 USERNAME_INVALID 400 Nobody is using this username, or the username is unacceptable. If the latter, it must match r"[a-zA-Z][\w\d]{3,30}[a-zA-Z\d]"
236 USERNAME_NOT_MODIFIED 400 The username is not different from the current username