Skip to content

Commit fe55233

Browse files
committed
Merge develop -> asyncio
2 parents 9bd9d77 + da515af commit fe55233

48 files changed

Lines changed: 135 additions & 103 deletions

Some content is hidden

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

compiler/api/compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def start():
288288
sorted_args = sort_args(c.args)
289289

290290
arguments = (
291-
", "
292-
+ ("*, " if c.args else "")
293-
+ (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
291+
", "
292+
+ ("*, " if c.args else "")
293+
+ (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
294294
)
295295

296296
fields = "\n ".join(

docs/releases.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
date = datetime.strptime(
5959
release["published_at"],
6060
"%Y-%m-%dT%H:%M:%SZ"
61-
).strftime("%b %d, %Y - %H:%M:%S (UTC)")
61+
).strftime("%b %d, %Y")
6262

6363
body = pypandoc.convert_text(
6464
release["body"].replace(r"\r\n", "\n"),
@@ -67,12 +67,17 @@
6767
extra_args=["--wrap=none"]
6868
)
6969

70+
tarball_url = release["tarball_url"]
71+
zipball_url = release["zipball_url"]
72+
7073
index.write("- :doc:`{} <{}>`\n".format(title, tag))
7174
tags.append(tag)
7275

7376
with open(DEST / "{}.rst".format(tag), "w") as page:
7477
page.write("Pyrogram " + tag + "\n" + "=" * (len(tag) + 9) + "\n\n")
75-
page.write("--- *Released on " + str(date) + "*\n\n")
78+
page.write("\t\tReleased on " + str(date) + "\n\n")
79+
page.write("- :download:`Source Code (zip) <{}>`\n".format(zipball_url))
80+
page.write("- :download:`Source Code (tar.gz) <{}>`\n\n".format(tarball_url))
7681
page.write(name + "\n" + "-" * len(name) + "\n\n")
7782
page.write(body + "\n\n")
7883

docs/source/api/types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Messages & Media
4545
- :class:`Messages`
4646
- :class:`MessageEntity`
4747
- :class:`Photo`
48-
- :class:`Photos`
48+
- :class:`ProfilePhotos`
4949
- :class:`Thumbnail`
5050
- :class:`Audio`
5151
- :class:`Document`
@@ -133,7 +133,7 @@ Details
133133
.. autoclass:: Messages()
134134
.. autoclass:: MessageEntity()
135135
.. autoclass:: Photo()
136-
.. autoclass:: Photos()
136+
.. autoclass:: ProfilePhotos()
137137
.. autoclass:: Thumbnail()
138138
.. autoclass:: Audio()
139139
.. autoclass:: Document()

docs/source/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ And here's a good explanation of how, probably, the system works:
197197
data-width="100%">
198198
</script>
199199

200-
.. centered:: Join the discussion at `@PyrogramChat <https://t.me/pyrogramchat>`_
200+
.. centered:: Join the discussion at `@Pyrogram <https://t.me/pyrogram>`_
201201

202202
However, you might be right, and your account was deactivated/limited without any good reason. This could happen because
203203
of mistakes by either the automatic systems or a moderator. In such cases you can kindly email Telegram at

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ How the Documentation is Organized
5050
----------------------------------
5151

5252
Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in
53-
order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant
54-
pages for a quick access.
53+
order using the :guilabel:`Next` button at the end of each page. Here below you can, instead, find a list of the most
54+
relevant pages for a quick access.
5555

5656
First Steps
5757
-----------

docs/source/start/auth.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ keep the session alive, Pyrogram won't ask you again to enter your phone number.
3939

4040
.. note::
4141

42-
The code above does nothing except asking for credentials and keeping the client online, hit ``CTRL+C`` now to stop
43-
your application and keep reading.
42+
The code above does nothing except asking for credentials and keeping the client online, hit :guilabel:`CTRL+C` now
43+
to stop your application and keep reading.
4444

4545
Bot Authorization
4646
-----------------

pyrogram/api/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
from .list import List
2323
from .message import Message
2424
from .msg_container import MsgContainer
25-
from .tl_object import TLObject
2625
from .primitives import (
2726
Bool, BoolTrue, BoolFalse, Bytes, Double,
2827
Int, Long, Int128, Int256, Null, String, Vector
2928
)
29+
from .tl_object import TLObject

pyrogram/api/core/future_salt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
from io import BytesIO
2020

21-
from .tl_object import TLObject
2221
from .primitives import Int, Long
22+
from .tl_object import TLObject
2323

2424

2525
class FutureSalt(TLObject):

pyrogram/api/core/future_salts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from io import BytesIO
2020

2121
from . import FutureSalt
22-
from .tl_object import TLObject
2322
from .primitives import Int, Long
23+
from .tl_object import TLObject
2424

2525

2626
class FutureSalts(TLObject):

pyrogram/api/core/gzip_packed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from gzip import compress, decompress
2020
from io import BytesIO
2121

22-
from .tl_object import TLObject
2322
from .primitives import Int, Bytes
23+
from .tl_object import TLObject
2424

2525

2626
class GzipPacked(TLObject):

0 commit comments

Comments
 (0)