Skip to content

Commit 24896d6

Browse files
authored
Update Pyrogram to v2.2.7
1 parent 47f47e9 commit 24896d6

File tree

18 files changed

+697
-149
lines changed

18 files changed

+697
-149
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
github: delivrance
2-
liberapay: delivrance
3-
open_collective: pyrogram
1+
custom: ["https://PyroTGFork.t.me/2"]

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ contact_links:
44
url: https://stackoverflow.com/questions/tagged/pyrogram
55
about: This place is only for reporting issues about Pyrogram. You can ask questions on StackOverflow.
66
- name: Join the Telegram channel
7-
url: https://t.me/PyroTGFork
7+
url: https://PyroTGFork.t.me/2
88
about: Join the official channel and stay tuned for news, updates and announcements.

.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ pyrogram/raw/functions/
1111
pyrogram/raw/types/
1212
pyrogram/raw/base/
1313
pyrogram/raw/all.py
14-
docs/source/telegram
15-
docs/source/api/methods/
16-
docs/source/api/bound-methods/
17-
docs/source/api/types/
18-
docs/source/api/enums/
1914
compiler/api/docs.json
2015

2116
# PyCharm stuff
@@ -89,10 +84,6 @@ instance/
8984
# Scrapy stuff:
9085
.scrapy
9186

92-
# Sphinx documentation
93-
docs/_build/
94-
docs/source/_build
95-
9687
# PyBuilder
9788
target/
9889

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Releases
1414
</a>
1515
16-
<a href="https://t.me/PyroTGFork">
16+
<a href="https://PyroTGFork.t.me/2">
1717
News
1818
</a>
1919
</p>
@@ -60,4 +60,4 @@ pip3 install pyrotgfork
6060

6161
- Check out [the docs](https://telegramplayground.github.io/pyrogram) to learn more about Pyrogram, get started right
6262
away and discover more in-depth material for building your client applications.
63-
- Join the official channel at [PyroTGFork](https://t.me/PyroTGFork) and stay tuned for news, updates and announcements.
63+
- Join the official channel at [PyroTGFork](https://PyroTGFork.t.me/2) and stay tuned for news, updates and announcements.

docs/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source/telegram
2+
source/api/methods/
3+
source/api/bound-methods/
4+
source/api/types/
5+
source/api/enums/
6+
7+
resources/
8+
9+
# Sphinx documentation
10+
_build/
11+
source/_build
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. raw:: html
22

33
<strong>Usable by</strong>
4-
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Users</span>
5-
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>
4+
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Users</span>
5+
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. raw:: html
22

33
<strong>Usable by</strong>
4-
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
5-
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>
4+
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
5+
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Bots</span>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. raw:: html
22

33
<strong>Usable by</strong>
4-
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
5-
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Bots</span>
4+
<span class="usable-by"><i class="fa-solid fa-check" style="color: var(--color-green)"></i> Users</span>
5+
<span class="usable-by"><i class="fa-solid fa-xmark" style="color: var(--color-red)"></i> Bots</span>

docs/source/conf.py

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
sys.path.insert(0, os.path.abspath("../.."))
2424

2525
from pyrogram import __version__
26+
from pyrogram.raw.all import layer
2627

2728
commit_id = subprocess.check_output([
2829
"git",
@@ -34,7 +35,7 @@
3435
project = "pyrotgfork"
3536
copyright = "2017-present, Dan"
3637
author = "Dan"
37-
version = __version__
38+
version = f"{__version__} Layer {layer}"
3839

3940
extensions = [
4041
"sphinx.ext.autodoc",
@@ -70,7 +71,7 @@
7071

7172
suppress_warnings = ["image.not_readable"]
7273

73-
html_title = f"Fork Pyrogram Documentation {version}"
74+
html_title = f"PyroTGFork {version}"
7475
html_theme = "furo"
7576
html_static_path = [os.path.abspath("static")]
7677
print("ABSOLUTE PATH", os.path.abspath("static"))
@@ -85,44 +86,34 @@
8586
html_theme_options = {
8687
"navigation_with_keys": True,
8788
"footer_icons": [
89+
{ # Github logo
90+
"name": "GitHub",
91+
"url": f"https://github.com/TelegramPlayGround/pyrogram/tree/{commit_id}",
92+
"class": "fa-brands fa-solid fa-github fa-2x",
93+
},
8894
{
8995
# Telegram channel logo
9096
"name": "Telegram Channel",
91-
"url": "https://Pyrogram.t.me",
92-
"html": (
93-
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
94-
'viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">'
95-
'<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994'
96-
"-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133."
97-
"958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.0"
98-
"5-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.81"
99-
"7-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.08"
100-
"8.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.23"
101-
"6.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 "
102-
"1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.7"
103-
'63.166-2.984 1.09z"></path></svg>'
104-
),
105-
"class": "",
97+
"url": "https://PyroTGFork.t.me/2",
98+
"class": "fa-brands fa-solid fa-telegram fa-2x",
10699
},
107-
{ # Github logo
108-
"name": "GitHub",
109-
"url": f"https://github.com/TelegramPlayGround/pyrogram/tree/{commit_id}",
110-
"html": (
111-
'<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
112-
'viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 '
113-
"2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.4"
114-
"9-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23"
115-
".82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 "
116-
"0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.2"
117-
"7 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.5"
118-
"1.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 "
119-
'1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z">'
120-
"</path></svg>"
121-
),
122-
"class": "",
100+
{
101+
"name": "",
102+
"url": "https://pypi.org/project/pyrotgfork/",
103+
"class": "fa-brands fa-solid fa-python fa-2x",
123104
},
124105
]
125106
}
107+
html_sidebars = {
108+
"**": [
109+
"sidebar/brand.html",
110+
"sidebar/search.html",
111+
"sidebar/scroll-start.html",
112+
"sidebar/navigation.html",
113+
# "sidebar/ethical-ads.html",
114+
"sidebar/scroll-end.html",
115+
]
116+
}
126117
latex_engine = "xelatex"
127118
latex_logo = os.path.abspath("static/img/pyrogram.png")
128119
print("latex_logo", latex_logo)

docs/source/index.rst

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
Welcome to ``PyroTGFork``
2-
==========================
3-
4-
.. admonition :: A Word of Warning
5-
:class: tip
6-
7-
We merge changes made to few of pyrogram forks plus changes made by us to this repository. All the features are just customized feature mostly for personal use; there is no guarantee in them being stable, **USE AT YOUR OWN RISK**.
8-
1+
Welcome to PyroTGFork Pyrogram Fork
2+
=====================================
93

104
.. raw:: html
115

@@ -34,7 +28,7 @@ Welcome to ``PyroTGFork``
3428
Releases
3529
</a>
3630
37-
<a href="https://t.me/pyrogram">
31+
<a href="https://PyroTGFork.t.me/2">
3832
News
3933
</a>
4034
</p>
@@ -64,11 +58,8 @@ It enables you to easily interact with the main Telegram API through a user acco
6458
Support
6559
-------
6660

67-
If you'd like to support Pyrogram, you can consider:
61+
If you'd like to support this fork, you can consider reading `this message <https://PyroTGFork.t.me/2>`__.
6862

69-
- `Become a GitHub sponsor <https://github.com/sponsors/delivrance>`_.
70-
- `Become a LiberaPay patron <https://liberapay.com/delivrance>`_.
71-
- `Become an OpenCollective backer <https://opencollective.com/pyrogram>`_.
7263

7364
How the Documentation is Organized
7465
----------------------------------
@@ -111,7 +102,7 @@ Meta
111102

112103
- :doc:`Pyrogram FAQ <faq/index>`: Answers to common Pyrogram questions.
113104
- :doc:`Support Pyrogram <support>`: Ways to show your appreciation.
114-
- :doc:`Release Notes <releases/index>`: Changes in this Fork.
105+
- :doc:`Release Notes <releases/changes-in-this-fork>`: Changes in this Fork.
115106

116107
.. toctree::
117108
:hidden:
@@ -173,15 +164,19 @@ Meta
173164
:caption: Meta
174165

175166
faq/index
176-
support
177167
releases/index
178168

179169
.. toctree::
180170
:hidden:
181171
:caption: Telegram Raw API
182172

183-
TL Schema Explorer <https://telegramplayground.github.io/schema.tl/>
184-
TL Diff <https://telegramplayground.github.io/TG-APIs/TL/diff/tdesktop.html>
185173
telegram/functions/index
186174
telegram/types/index
187175
telegram/base/index
176+
177+
.. toctree::
178+
:hidden:
179+
:caption: External Links
180+
181+
TL Schema Explorer <https://telegramplayground.github.io/schema.tl/>
182+
TL Diff <https://telegramplayground.github.io/TG-APIs/TL/diff/tdesktop.html>

0 commit comments

Comments
 (0)