2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 14:25:55 +00:00

Remove API key requirement for existing sessions

This commit is contained in:
Dan
2022-04-24 11:56:07 +02:00
parent b8f39725c5
commit 124bcb4db7
28 changed files with 250 additions and 435 deletions

View File

@@ -1,6 +1,6 @@
id message
FILE_MIGRATE_X The file to be accessed is currently stored in DC{x}
NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration)
PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x}
STATS_MIGRATE_X The statistics of the group/channel are stored in DC{x}
USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration)
FILE_MIGRATE_X The file to be accessed is currently stored in DC{value}
NETWORK_MIGRATE_X The source IP address is associated with DC{value} (for registration)
PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{value}
STATS_MIGRATE_X The statistics of the group/channel are stored in DC{value}
USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{value} (for registration)
1 id message
2 FILE_MIGRATE_X The file to be accessed is currently stored in DC{x} The file to be accessed is currently stored in DC{value}
3 NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration) The source IP address is associated with DC{value} (for registration)
4 PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x} The phone number a user is trying to use for authorization is associated with DC{value}
5 STATS_MIGRATE_X The statistics of the group/channel are stored in DC{x} The statistics of the group/channel are stored in DC{value}
6 USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration) The user whose identity is being used to execute queries is associated with DC{value} (for registration)

View File

@@ -89,7 +89,7 @@ DOCUMENT_INVALID The document is invalid
EMAIL_HASH_EXPIRED The email hash expired and cannot be used to verify it
EMAIL_INVALID The email provided is invalid
EMAIL_UNCONFIRMED Email unconfirmed
EMAIL_UNCONFIRMED_X The provided email isn't confirmed, {x} is the length of the verification code that was just sent to the email
EMAIL_UNCONFIRMED_X The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email
EMAIL_VERIFY_EXPIRED The verification email has expired
EMOTICON_EMPTY The emoticon parameter is empty
EMOTICON_INVALID The emoticon parameter is invalid
@@ -108,7 +108,7 @@ EXTERNAL_URL_INVALID The external media URL is invalid
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
FILE_ID_INVALID The file id is invalid
FILE_MIGRATE_X The file is in Data Center No. {x}
FILE_MIGRATE_X The file is in Data Center No. {value}
FILE_PARTS_INVALID Invalid number of parts. The value is not between 1 and 4000
FILE_PART_EMPTY The file part sent is empty
FILE_PART_INVALID The file part number is invalid. The value is not between 0 and 3999
@@ -116,7 +116,7 @@ FILE_PART_LENGTH_INVALID The length of a file part is invalid
FILE_PART_SIZE_CHANGED The part size is different from the size of one of the previous parts in the same file
FILE_PART_SIZE_INVALID 512 KB cannot be evenly divided by part_size
FILE_PART_TOO_BIG The size limit (512 KB) for the content of the file part has been exceeded
FILE_PART_X_MISSING Part {x} of the file is missing from storage
FILE_PART_X_MISSING Part {value} of the file is missing from storage
FILE_REFERENCE_EMPTY The file id contains an empty file reference, you must obtain a valid one by fetching the message from the origin context
FILE_REFERENCE_EXPIRED The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context
FILE_REFERENCE_INVALID The file id contains an invalid file reference, you must obtain a valid one by fetching the message from the origin context
@@ -198,7 +198,7 @@ PASSWORD_HASH_INVALID The two-step verification password is invalid
PASSWORD_MISSING The account is missing the two-step verification password
PASSWORD_RECOVERY_NA The password recovery e-mail is not available
PASSWORD_REQUIRED The two-step verification password is required for this method
PASSWORD_TOO_FRESH_X The two-step verification password was added recently and you are required to wait {x} seconds
PASSWORD_TOO_FRESH_X The two-step verification password was added recently and you are required to wait {value} seconds
PAYMENT_PROVIDER_INVALID The payment provider was not recognised or its token was invalid
PEER_FLOOD The method can't be used because your account is currently limited
PEER_ID_INVALID The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it
@@ -349,4 +349,4 @@ WEBDOCUMENT_URL_EMPTY The web document URL is empty
WEBDOCUMENT_URL_INVALID The web document URL is invalid
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
YOU_BLOCKED_USER You blocked this user
YOU_BLOCKED_USER You blocked this user
1 id message
89 EMAIL_HASH_EXPIRED The email hash expired and cannot be used to verify it
90 EMAIL_INVALID The email provided is invalid
91 EMAIL_UNCONFIRMED Email unconfirmed
92 EMAIL_UNCONFIRMED_X The provided email isn't confirmed, {x} is the length of the verification code that was just sent to the email The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email
93 EMAIL_VERIFY_EXPIRED The verification email has expired
94 EMOTICON_EMPTY The emoticon parameter is empty
95 EMOTICON_INVALID The emoticon parameter is invalid
108 FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
109 FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
110 FILE_ID_INVALID The file id is invalid
111 FILE_MIGRATE_X The file is in Data Center No. {x} The file is in Data Center No. {value}
112 FILE_PARTS_INVALID Invalid number of parts. The value is not between 1 and 4000
113 FILE_PART_EMPTY The file part sent is empty
114 FILE_PART_INVALID The file part number is invalid. The value is not between 0 and 3999
116 FILE_PART_SIZE_CHANGED The part size is different from the size of one of the previous parts in the same file
117 FILE_PART_SIZE_INVALID 512 KB cannot be evenly divided by part_size
118 FILE_PART_TOO_BIG The size limit (512 KB) for the content of the file part has been exceeded
119 FILE_PART_X_MISSING Part {x} of the file is missing from storage Part {value} of the file is missing from storage
120 FILE_REFERENCE_EMPTY The file id contains an empty file reference, you must obtain a valid one by fetching the message from the origin context
121 FILE_REFERENCE_EXPIRED The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context
122 FILE_REFERENCE_INVALID The file id contains an invalid file reference, you must obtain a valid one by fetching the message from the origin context
198 PASSWORD_MISSING The account is missing the two-step verification password
199 PASSWORD_RECOVERY_NA The password recovery e-mail is not available
200 PASSWORD_REQUIRED The two-step verification password is required for this method
201 PASSWORD_TOO_FRESH_X The two-step verification password was added recently and you are required to wait {x} seconds The two-step verification password was added recently and you are required to wait {value} seconds
202 PAYMENT_PROVIDER_INVALID The payment provider was not recognised or its token was invalid
203 PEER_FLOOD The method can't be used because your account is currently limited
204 PEER_ID_INVALID The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it
349 WEBDOCUMENT_URL_INVALID The web document URL is invalid
350 WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
351 WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
352 YOU_BLOCKED_USER You blocked this user

View File

@@ -1,6 +1,6 @@
id message
2FA_CONFIRM_WAIT_X A wait of {x} seconds is required because this account is active and protected by a 2FA password
FLOOD_TEST_PHONE_WAIT_X A wait of {x} seconds is required in the test servers
FLOOD_WAIT_X A wait of {x} seconds is required
SLOWMODE_WAIT_X A wait of {x} seconds is required to send messages in this chat.
TAKEOUT_INIT_DELAY_X You have to confirm the data export request using one of your mobile devices or wait {x} seconds
2FA_CONFIRM_WAIT_X A wait of {value} seconds is required because this account is active and protected by a 2FA password
FLOOD_TEST_PHONE_WAIT_X A wait of {value} seconds is required in the test servers
FLOOD_WAIT_X A wait of {value} seconds is required
SLOWMODE_WAIT_X A wait of {value} seconds is required to send messages in this chat.
TAKEOUT_INIT_DELAY_X You have to confirm the data export request using one of your mobile devices or wait {value} seconds
1 id message
2 2FA_CONFIRM_WAIT_X A wait of {x} seconds is required because this account is active and protected by a 2FA password A wait of {value} seconds is required because this account is active and protected by a 2FA password
3 FLOOD_TEST_PHONE_WAIT_X A wait of {x} seconds is required in the test servers A wait of {value} seconds is required in the test servers
4 FLOOD_WAIT_X A wait of {x} seconds is required A wait of {value} seconds is required
5 SLOWMODE_WAIT_X A wait of {x} seconds is required to send messages in this chat. A wait of {value} seconds is required to send messages in this chat.
6 TAKEOUT_INIT_DELAY_X You have to confirm the data export request using one of your mobile devices or wait {x} seconds You have to confirm the data export request using one of your mobile devices or wait {value} seconds

View File

@@ -13,8 +13,8 @@ GROUPCALL_ADD_PARTICIPANTS_FAILED Failure while adding voice chat member due to
GROUPED_ID_OCCUPY_FAILED Telegram is having internal problems. Please try again later
HISTORY_GET_FAILED The chat history couldn't be retrieved due to Telegram having internal problems. Please try again later
IMAGE_ENGINE_DOWN Image engine down due to Telegram having internal problems. Please try again later
INTERDC_X_CALL_ERROR An error occurred while Telegram was intercommunicating with DC{x}. Please try again later
INTERDC_X_CALL_RICH_ERROR A rich error occurred while Telegram was intercommunicating with DC{x}. Please try again later
INTERDC_X_CALL_ERROR An error occurred while Telegram was intercommunicating with DC{value}. Please try again later
INTERDC_X_CALL_RICH_ERROR A rich error occurred while Telegram was intercommunicating with DC{value}. Please try again later
MEMBER_FETCH_FAILED Telegram is having internal problems. Please try again later
MEMBER_NO_LOCATION Couldn't find the member's location due to Telegram having internal problems. Please try again later
MEMBER_OCCUPY_PRIMARY_LOC_FAILED Telegram is having internal problems. Please try again later
1 id message
13 GROUPED_ID_OCCUPY_FAILED Telegram is having internal problems. Please try again later
14 HISTORY_GET_FAILED The chat history couldn't be retrieved due to Telegram having internal problems. Please try again later
15 IMAGE_ENGINE_DOWN Image engine down due to Telegram having internal problems. Please try again later
16 INTERDC_X_CALL_ERROR An error occurred while Telegram was intercommunicating with DC{x}. Please try again later An error occurred while Telegram was intercommunicating with DC{value}. Please try again later
17 INTERDC_X_CALL_RICH_ERROR A rich error occurred while Telegram was intercommunicating with DC{x}. Please try again later A rich error occurred while Telegram was intercommunicating with DC{value}. Please try again later
18 MEMBER_FETCH_FAILED Telegram is having internal problems. Please try again later
19 MEMBER_NO_LOCATION Couldn't find the member's location due to Telegram having internal problems. Please try again later
20 MEMBER_OCCUPY_PRIMARY_LOC_FAILED Telegram is having internal problems. Please try again later

View File

@@ -1,3 +1,3 @@
id message
Timeout Telegram is having internal problems. Please try again later.
ApiCallError Telegram is having internal problems. Please try again later.
ApiCallError Telegram is having internal problems. Please try again later.
Timeout Telegram is having internal problems. Please try again later.
1 id message
2 Timeout ApiCallError Telegram is having internal problems. Please try again later.
3 ApiCallError Timeout Telegram is having internal problems. Please try again later.