mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Update docs
This commit is contained in:
parent
6bebe2297e
commit
8151270a94
@ -58,7 +58,7 @@ with open(DEST / "index.rst", "w") as index:
|
|||||||
date = datetime.strptime(
|
date = datetime.strptime(
|
||||||
release["published_at"],
|
release["published_at"],
|
||||||
"%Y-%m-%dT%H:%M:%SZ"
|
"%Y-%m-%dT%H:%M:%SZ"
|
||||||
).strftime("%b %d, %Y - %H:%M:%S (UTC)")
|
).strftime("%b %d, %Y")
|
||||||
|
|
||||||
body = pypandoc.convert_text(
|
body = pypandoc.convert_text(
|
||||||
release["body"].replace(r"\r\n", "\n"),
|
release["body"].replace(r"\r\n", "\n"),
|
||||||
@ -67,12 +67,17 @@ with open(DEST / "index.rst", "w") as index:
|
|||||||
extra_args=["--wrap=none"]
|
extra_args=["--wrap=none"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tarball_url = release["tarball_url"]
|
||||||
|
zipball_url = release["zipball_url"]
|
||||||
|
|
||||||
index.write("- :doc:`{} <{}>`\n".format(title, tag))
|
index.write("- :doc:`{} <{}>`\n".format(title, tag))
|
||||||
tags.append(tag)
|
tags.append(tag)
|
||||||
|
|
||||||
with open(DEST / "{}.rst".format(tag), "w") as page:
|
with open(DEST / "{}.rst".format(tag), "w") as page:
|
||||||
page.write("Pyrogram " + tag + "\n" + "=" * (len(tag) + 9) + "\n\n")
|
page.write("Pyrogram " + tag + "\n" + "=" * (len(tag) + 9) + "\n\n")
|
||||||
page.write("--- *Released on " + str(date) + "*\n\n")
|
page.write("\t\tReleased on " + str(date) + "\n\n")
|
||||||
|
page.write("- :download:`Source Code (zip) <{}>`\n".format(zipball_url))
|
||||||
|
page.write("- :download:`Source Code (tar.gz) <{}>`\n\n".format(tarball_url))
|
||||||
page.write(name + "\n" + "-" * len(name) + "\n\n")
|
page.write(name + "\n" + "-" * len(name) + "\n\n")
|
||||||
page.write(body + "\n\n")
|
page.write(body + "\n\n")
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ And here's a good explanation of how, probably, the system works:
|
|||||||
data-width="100%">
|
data-width="100%">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
.. centered:: Join the discussion at `@PyrogramChat <https://t.me/pyrogramchat>`_
|
.. centered:: Join the discussion at `@Pyrogram <https://t.me/pyrogram>`_
|
||||||
|
|
||||||
However, you might be right, and your account was deactivated/limited without any good reason. This could happen because
|
However, you might be right, and your account was deactivated/limited without any good reason. This could happen because
|
||||||
of mistakes by either the automatic systems or a moderator. In such cases you can kindly email Telegram at
|
of mistakes by either the automatic systems or a moderator. In such cases you can kindly email Telegram at
|
||||||
|
@ -50,8 +50,8 @@ How the Documentation is Organized
|
|||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in
|
Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in
|
||||||
order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant
|
order using the :guilabel:`Next` button at the end of each page. Here below you can, instead, find a list of the most
|
||||||
pages for a quick access.
|
relevant pages for a quick access.
|
||||||
|
|
||||||
First Steps
|
First Steps
|
||||||
-----------
|
-----------
|
||||||
|
@ -39,8 +39,8 @@ keep the session alive, Pyrogram won't ask you again to enter your phone number.
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
The code above does nothing except asking for credentials and keeping the client online, hit ``CTRL+C`` now to stop
|
The code above does nothing except asking for credentials and keeping the client online, hit :guilabel:`CTRL+C` now
|
||||||
your application and keep reading.
|
to stop your application and keep reading.
|
||||||
|
|
||||||
Bot Authorization
|
Bot Authorization
|
||||||
-----------------
|
-----------------
|
||||||
|
@ -42,7 +42,7 @@ from ..object import Object
|
|||||||
class InlineQueryResult(Object):
|
class InlineQueryResult(Object):
|
||||||
"""One result of an inline query.
|
"""One result of an inline query.
|
||||||
|
|
||||||
Pyrogram currently supports results of the following 20 types:
|
Pyrogram currently supports results of the following types:
|
||||||
|
|
||||||
- :obj:`InlineQueryResultArticle`
|
- :obj:`InlineQueryResultArticle`
|
||||||
"""
|
"""
|
||||||
|
@ -26,7 +26,7 @@ from ..object import Object
|
|||||||
class InputMessageContent(Object):
|
class InputMessageContent(Object):
|
||||||
"""Content of a message to be sent as a result of an inline query.
|
"""Content of a message to be sent as a result of an inline query.
|
||||||
|
|
||||||
Pyrogram currently supports the following 4 types:
|
Pyrogram currently supports the following types:
|
||||||
|
|
||||||
- :obj:`InputTextMessageContent`
|
- :obj:`InputTextMessageContent`
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user