Skip to content

Commit 124bcb4

Browse files
committed
Remove API key requirement for existing sessions
1 parent b8f3972 commit 124bcb4

28 files changed

Lines changed: 250 additions & 435 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id message
2-
FILE_MIGRATE_X The file to be accessed is currently stored in DC{x}
3-
NETWORK_MIGRATE_X The source IP address is associated with DC{x} (for registration)
4-
PHONE_MIGRATE_X The phone number a user is trying to use for authorization is associated with DC{x}
5-
STATS_MIGRATE_X The statistics of the group/channel are stored in DC{x}
6-
USER_MIGRATE_X The user whose identity is being used to execute queries is associated with DC{x} (for registration)
2+
FILE_MIGRATE_X The file to be accessed is currently stored in DC{value}
3+
NETWORK_MIGRATE_X 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{value}
5+
STATS_MIGRATE_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{value} (for registration)

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ DOCUMENT_INVALID The document is invalid
8989
EMAIL_HASH_EXPIRED The email hash expired and cannot be used to verify it
9090
EMAIL_INVALID The email provided is invalid
9191
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
92+
EMAIL_UNCONFIRMED_X The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email
9393
EMAIL_VERIFY_EXPIRED The verification email has expired
9494
EMOTICON_EMPTY The emoticon parameter is empty
9595
EMOTICON_INVALID The emoticon parameter is invalid
@@ -108,15 +108,15 @@ EXTERNAL_URL_INVALID The external media URL is invalid
108108
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
109109
FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
110110
FILE_ID_INVALID The file id is invalid
111-
FILE_MIGRATE_X The file is in Data Center No. {x}
111+
FILE_MIGRATE_X The file is in Data Center No. {value}
112112
FILE_PARTS_INVALID Invalid number of parts. The value is not between 1 and 4000
113113
FILE_PART_EMPTY The file part sent is empty
114114
FILE_PART_INVALID The file part number is invalid. The value is not between 0 and 3999
115115
FILE_PART_LENGTH_INVALID The length of a file part is invalid
116116
FILE_PART_SIZE_CHANGED The part size is different from the size of one of the previous parts in the same file
117117
FILE_PART_SIZE_INVALID 512 KB cannot be evenly divided by part_size
118118
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
119+
FILE_PART_X_MISSING Part {value} of the file is missing from storage
120120
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
121121
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
122122
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
198198
PASSWORD_MISSING The account is missing the two-step verification password
199199
PASSWORD_RECOVERY_NA The password recovery e-mail is not available
200200
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
201+
PASSWORD_TOO_FRESH_X The two-step verification password was added recently and you are required to wait {value} seconds
202202
PAYMENT_PROVIDER_INVALID The payment provider was not recognised or its token was invalid
203203
PEER_FLOOD The method can't be used because your account is currently limited
204204
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
349349
WEBDOCUMENT_URL_INVALID The web document URL is invalid
350350
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
351351
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
352-
YOU_BLOCKED_USER You blocked this user
352+
YOU_BLOCKED_USER You blocked this user
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
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
3-
FLOOD_TEST_PHONE_WAIT_X A wait of {x} seconds is required in the test servers
4-
FLOOD_WAIT_X A wait of {x} seconds is required
5-
SLOWMODE_WAIT_X A wait of {x} 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
2+
2FA_CONFIRM_WAIT_X 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 {value} seconds is required in the test servers
4+
FLOOD_WAIT_X A wait of {value} seconds is required
5+
SLOWMODE_WAIT_X 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 {value} seconds

compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ GROUPCALL_ADD_PARTICIPANTS_FAILED Failure while adding voice chat member due to
1313
GROUPED_ID_OCCUPY_FAILED Telegram is having internal problems. Please try again later
1414
HISTORY_GET_FAILED The chat history couldn't be retrieved due to Telegram having internal problems. Please try again later
1515
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
17-
INTERDC_X_CALL_RICH_ERROR A rich error occurred while Telegram was intercommunicating with DC{x}. Please try again later
16+
INTERDC_X_CALL_ERROR 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{value}. Please try again later
1818
MEMBER_FETCH_FAILED Telegram is having internal problems. Please try again later
1919
MEMBER_NO_LOCATION Couldn't find the member's location due to Telegram having internal problems. Please try again later
2020
MEMBER_OCCUPY_PRIMARY_LOC_FAILED Telegram is having internal problems. Please try again later
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
id message
2-
Timeout Telegram is having internal problems. Please try again later.
3-
ApiCallError Telegram is having internal problems. Please try again later.
2+
ApiCallError Telegram is having internal problems. Please try again later.
3+
Timeout Telegram is having internal problems. Please try again later.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
NextCodeType
2+
============
3+
4+
.. autoclass:: pyrogram.enums.NextCodeType()
5+
:members:
6+
7+
.. raw:: html
8+
:file: ./cleanup.html

docs/source/api/enums/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ to apply only a valid value among the expected ones.
2525
ParseMode
2626
PollType
2727
SentCodeType
28+
NextCodeType
2829
UserStatus
2930

3031
.. toctree::
@@ -42,4 +43,5 @@ to apply only a valid value among the expected ones.
4243
ParseMode
4344
PollType
4445
SentCodeType
46+
NextCodeType
4547
UserStatus

docs/source/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ Meta
111111

112112
intro/quickstart
113113
intro/install
114-
intro/setup
115114

116115
.. toctree::
117116
:hidden:
118117
:caption: Getting Started
119118

119+
start/setup
120120
start/auth
121121
start/invoking
122122
start/updates
@@ -144,7 +144,6 @@ Meta
144144
topics/use-filters
145145
topics/create-filters
146146
topics/more-on-updates
147-
topics/config-file
148147
topics/smart-plugins
149148
topics/client-settings
150149
topics/tgcrypto

docs/source/intro/quickstart.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ Get Pyrogram Real Fast
2626
api_id = 12345
2727
api_hash = "0123456789abcdef0123456789abcdef"
2828
29+
2930
async def main():
3031
async with Client("my_account", api_id, api_hash) as app:
3132
await app.send_message("me", "Greetings from **Pyrogram**!")
3233
34+
3335
asyncio.run(main())
3436
3537
4. Replace *api_id* and *api_hash* values with your own.

docs/source/intro/setup.rst

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)