Skip to content

Commit 0f90292

Browse files
committed
Merge develop -> asyncio
2 parents c30e8f9 + d875298 commit 0f90292

File tree

127 files changed

+2189
-562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+2189
-562
lines changed

compiler/docs/compiler.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def get_title_list(s: str) -> list:
136136
remove_handler
137137
stop_transmission
138138
export_session_string
139+
set_parse_mode
139140
""",
140141
messages="""
141142
Messages
@@ -203,6 +204,12 @@ def get_title_list(s: str) -> list:
203204
update_chat_username
204205
archive_chats
205206
unarchive_chats
207+
add_chat_members
208+
create_channel
209+
create_group
210+
create_supergroup
211+
delete_channel
212+
delete_supergroup
206213
""",
207214
users="""
208215
Users
@@ -334,6 +341,8 @@ def get_title_list(s: str) -> list:
334341
InlineQuery
335342
InlineQueryResult
336343
InlineQueryResultArticle
344+
InlineQueryResultPhoto
345+
InlineQueryResultAnimation
337346
""",
338347
input_message_content="""
339348
InputMessageContent
@@ -412,11 +421,15 @@ def get_title_list(s: str) -> list:
412421
Chat.unban_member
413422
Chat.restrict_member
414423
Chat.promote_member
424+
Chat.join
425+
Chat.leave
415426
""",
416427
user="""
417428
User
418429
User.archive
419430
User.unarchive
431+
User.block
432+
User.unblock
420433
""",
421434
callback_query="""
422435
Callback Query

compiler/error/source/400_BAD_REQUEST.tsv

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,13 @@ FILE_PART_TOO_BIG The size limit (512 KB) for the content of the file part has b
113113
FILE_PART_EMPTY The file part sent is empty
114114
FILE_PART_SIZE_INVALID 512 KB cannot be evenly divided by part_size
115115
FILE_PART_SIZE_CHANGED The part size is different from the size of one of the previous parts in the same file
116-
FILE_MIGRATE_X The file is in Data Center No. {x}
116+
FILE_MIGRATE_X The file is in Data Center No. {x}
117+
RESULT_TYPE_INVALID The result type is invalid
118+
PHOTO_THUMB_URL_EMPTY The photo thumb URL is empty
119+
PHOTO_THUMB_URL_INVALID The photo thumb URL is invalid
120+
PHOTO_CONTENT_URL_EMPTY The photo content URL is empty
121+
PHOTO_CONTENT_TYPE_INVALID The photo content type is invalid
122+
WEBDOCUMENT_INVALID The web document is invalid
123+
WEBDOCUMENT_URL_EMPTY The web document URL is empty
124+
WEBDOCUMENT_URL_INVALID The web document URL is invalid
125+
WEBDOCUMENT_MIME_INVALID The web document mime type is invalid

docs/source/faq.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ I started a client and nothing happens!
144144
---------------------------------------
145145

146146
If you are connecting from Russia, China or Iran :doc:`you need a proxy <topics/proxy>`, because Telegram could be
147-
partially or totally blocked in those countries.
147+
partially or totally blocked in those countries. More information about this block can be found at
148+
`Wikipedia <https://en.wikipedia.org/wiki/Blocking_Telegram_in_Russia>`_.
148149

149150
Another possible cause might be network issues, either yours or Telegram's. To confirm this, add the following code on
150151
the top of your script and run it again. You should see some error mentioning a socket timeout or an unreachable network
@@ -161,9 +162,9 @@ fails or not.
161162
What are the IP addresses of Telegram Data Centers?
162163
---------------------------------------------------
163164

164-
The Telegram cloud is currently composed by a decentralized, multi-DC infrastructure (each of which can work
165-
independently) spread in 5 different locations. However, some of the less busy DCs have been lately dismissed and their
166-
IP addresses are now kept as aliases.
165+
The Telegram cloud is currently composed by a decentralized, multi-DC infrastructure (currently 5 DCs, each of which can
166+
work independently) spread in different locations worldwide. However, some of the less busy DCs have been lately
167+
dismissed and their IP addresses are now kept as aliases to the nearest one.
167168

168169
.. csv-table:: Production Environment
169170
:header: ID, Location, IPv4, IPv6

docs/source/topics/smart-plugins.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ attribute. Here's an example:
316316
Unloading
317317
^^^^^^^^^
318318

319-
In order to unload a plugin, or any other handler, all you need to do is obtain a reference to it by importing the
320-
relevant module and call :meth:`~pyrogram.Client.remove_handler` Client's method with your function
321-
name preceded by the star ``*`` operator as argument. Example:
319+
In order to unload a plugin, all you need to do is obtain a reference to it by importing the relevant module and call
320+
:meth:`~pyrogram.Client.remove_handler` Client's method with your function's *handler* special attribute preceded by the
321+
star ``*`` operator as argument. Example:
322322

323323
- ``main.py``
324324

@@ -328,14 +328,14 @@ name preceded by the star ``*`` operator as argument. Example:
328328
329329
...
330330
331-
app.remove_handler(*echo)
331+
app.remove_handler(*echo.handler)
332332
333333
The star ``*`` operator is used to unpack the tuple into positional arguments so that *remove_handler* will receive
334334
exactly what is needed. The same could have been achieved with:
335335

336336
.. code-block:: python
337337
338-
handler, group = echo
338+
handler, group = echo.handler
339339
app.remove_handler(handler, group)
340340
341341
Loading
@@ -352,4 +352,4 @@ using :meth:`~pyrogram.Client.add_handler` instead. Example:
352352
353353
...
354354
355-
app.add_handler(*echo)
355+
app.add_handler(*echo.handler)

0 commit comments

Comments
 (0)