mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Add Error compiler
This commit is contained in:
5
compiler/error/source/303_SEE_OTHER.csv
Normal file
5
compiler/error/source/303_SEE_OTHER.csv
Normal file
@@ -0,0 +1,5 @@
|
||||
id message
|
||||
FILE_MIGRATE_X The file to be accessed is currently stored in DC{x}
|
||||
PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x}
|
||||
NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration)
|
||||
USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration)
|
|
29
compiler/error/source/400_BAD_REQUEST.csv
Normal file
29
compiler/error/source/400_BAD_REQUEST.csv
Normal file
@@ -0,0 +1,29 @@
|
||||
id message
|
||||
FIRSTNAME_INVALID The first name is invalid
|
||||
LASTNAME_INVALID The last name is invalid
|
||||
PHONE_NUMBER_INVALID The phone number is invalid
|
||||
PHONE_CODE_HASH_EMPTY phone_code_hash is missing
|
||||
PHONE_CODE_EMPTY phone_code is missing
|
||||
PHONE_CODE_EXPIRED The confirmation code has expired
|
||||
PHONE_CODE_INVALID The confirmation code is invalid
|
||||
API_ID_INVALID The api_id/api_hash combination is invalid
|
||||
PHONE_NUMBER_OCCUPIED The phone number is already in use
|
||||
PHONE_NUMBER_UNOCCUPIED The phone number is not yet being used
|
||||
USERS_TOO_FEW Not enough users (to create a chat, for example)
|
||||
USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example)
|
||||
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
|
||||
FILE_PART_INVALID The file part number is invalid
|
||||
FILE_PARTS_INVALID The number of file parts is invalid
|
||||
FILE_PART_X_MISSING Part {x} of the file is missing from storage
|
||||
MD5_CHECKSUM_INVALID The MD5 checksums do not match
|
||||
PHOTO_INVALID_DIMENSIONS The photo dimensions are invalid
|
||||
FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
|
||||
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
|
||||
MSG_WAIT_FAILED A waiting call returned an error
|
||||
PEER_ID_INVALID The id/access_hash combination is invalid
|
||||
MESSAGE_EMPTY The message sent is empty
|
||||
ENCRYPTED_MESSAGE_INVALID The special binding message (bind_auth_key_inner) contains invalid data
|
||||
INPUT_METHOD_INVALID The method called is invalid
|
||||
PASSWORD_HASH_INVALID Two-step verification password is invalid
|
||||
USERNAME_NOT_OCCUPIED The username is not occupied by anyone
|
||||
USERNAME_INVALID The username is invalid
|
|
9
compiler/error/source/401_UNAUTHORIZED.csv
Normal file
9
compiler/error/source/401_UNAUTHORIZED.csv
Normal file
@@ -0,0 +1,9 @@
|
||||
id message
|
||||
AUTH_KEY_UNREGISTERED The key is not registered in the system
|
||||
AUTH_KEY_INVALID The key is invalid
|
||||
USER_DEACTIVATED The user has been deleted/deactivated
|
||||
SESSION_REVOKED The authorization has been invalidated, because of the user terminating all sessions
|
||||
SESSION_EXPIRED The authorization has expired
|
||||
ACTIVE_USER_REQUIRED The method is only available to already activated users
|
||||
AUTH_KEY_PERM_EMPTY The method is unavailable for temporary authorization key, not bound to permanent
|
||||
SESSION_PASSWORD_NEEDED Two-step verification password required
|
|
2
compiler/error/source/420_FLOOD.csv
Normal file
2
compiler/error/source/420_FLOOD.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
id message
|
||||
FLOOD_WAIT_X A wait of {x} seconds is required
|
|
2
compiler/error/source/500_INTERNAL_SERVER_ERROR.csv
Normal file
2
compiler/error/source/500_INTERNAL_SERVER_ERROR.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
id message
|
||||
AUTH_RESTART User authorization has restarted
|
|
Reference in New Issue
Block a user