Skip to content

Commit 0b2cffb

Browse files
committed
Rebrand and Update Pyrogram to 2.2.1
1 parent a2b8b51 commit 0b2cffb

File tree

22 files changed

+62
-161
lines changed

22 files changed

+62
-161
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
required: true
1111
- label: I have searched in the issue tracker for similar bug reports, including closed ones
1212
required: true
13-
- label: I ran `pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip` and reproduced the issue using the latest development version
13+
- label: I ran `pip3 install https://github.com/TelegramPlayground/pyrogram/archive/dev.zip --force-reinstall` and reproduced the issue using the latest development version
1414
required: true
1515

1616
- type: textarea
@@ -49,4 +49,4 @@ body:
4949
Traceback (most recent call last):
5050
File "main.py", line 1, in <module>
5151
...
52-
render: shell
52+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
blank_issues_enabled: false
1+
blank_issues_enabled: true
22
contact_links:
33
- name: Ask Pyrogram related questions
44
url: https://stackoverflow.com/questions/tagged/pyrogram
5-
about: This place is only for reporting issues about Pyrogram. You can ask questions at StackOverflow.
5+
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/pyrogram
8-
about: Join the official channel and stay tuned for news, updates and announcements.
7+
url: https://t.me/PyroTGFork
8+
about: Join the official channel and stay tuned for news, updates and announcements.

MANIFEST.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
## Include
1+
# Include files
22
include README.md COPYING COPYING.lesser NOTICE requirements.txt
33
recursive-include compiler *.py *.tl *.tsv *.txt
44
recursive-include tests *.py
55

6-
## Exclude
6+
# Exclude files
7+
exclude pyrogram/raw/all.py
8+
9+
# Prune directories
710
prune pyrogram/errors/exceptions
811
prune pyrogram/raw/functions
912
prune pyrogram/raw/types
1013
prune pyrogram/raw/base
11-
exclude pyrogram/raw/all.py

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TAG = v$(shell grep -E '__version__ = ".*"' pyrogram/__init__.py | cut -d\" -f2)
55

66
RM := rm -rf
77

8-
.PHONY: venv clean-build clean-api clean api build clean-docs docs
8+
.PHONY: venv clean-build clean-api clean api build tag dtag clean-docs docs
99

1010
all: clean venv build
1111
echo Done

README.md

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
## [Fork Documentation](https://telegramplayground.github.io/pyrogram/)
2-
3-
## Installing this Fork
4-
5-
```bash
6-
pip install PyroTGFork
7-
```
8-
9-
101
<p align="center">
11-
<a href="https://github.com/pyrogram/pyrogram">
12-
<img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
2+
<a href="https://github.com/TelegramPlayground/pyrogram">
3+
<img src="https://raw.githubusercontent.com/pyrogram/artwork/master/artwork/pyrogram-logo.png" alt="Pyrogram" width="128">
134
</a>
145
<br>
156
<b>Telegram MTProto API Framework for Python</b>
167
<br>
17-
<a href="https://pyrogram.org">
18-
Homepage
19-
</a>
20-
21-
<a href="https://docs.pyrogram.org">
8+
<a href="https://telegramplayground.github.io/pyrogram/">
229
Documentation
2310
</a>
2411
25-
<a href="https://docs.pyrogram.org/releases">
12+
<a href="https://telegramplayground.github.io/pyrogram/releases/changes-in-this-fork.html">
2613
Releases
2714
</a>
2815
29-
<a href="https://t.me/pyrogram">
16+
<a href="https://t.me/PyroTGFork">
3017
News
3118
</a>
3219
</p>
@@ -49,36 +36,28 @@ async def hello(client, message):
4936
app.run()
5037
```
5138

52-
**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi)
39+
**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://telegramplayground.github.io/pyrogram/topics/mtproto-vs-botapi)
5340
framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
5441
identity (bot API alternative) using Python.
5542

56-
### Support
57-
58-
If you'd like to support Pyrogram, you can consider:
59-
60-
- [Become a GitHub sponsor](https://github.com/sponsors/delivrance).
61-
- [Become a LiberaPay patron](https://liberapay.com/delivrance).
62-
- [Become an OpenCollective backer](https://opencollective.com/pyrogram).
63-
6443
### Key Features
6544

6645
- **Ready**: Install Pyrogram with pip and start building your applications right away.
6746
- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
6847
- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
69-
- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.
48+
- **Fast**: Boosted up by [TgCrypto](https://github.com/TelegramPlayGround/pyrogram-tgcrypto), a high-performance cryptography library written in C.
7049
- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
7150
- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
7251
- **Powerful**: Full access to Telegram's API to execute any official client action and more.
7352

7453
### Installing
7554

7655
``` bash
77-
pip3 install pyrogram
56+
pip3 install pyrotgfork
7857
```
7958

8059
### Resources
8160

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

compiler/api/template/type.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class {name}: # type: ignore
1717
QUALNAME = "pyrogram.raw.base.{qualname}"
1818

1919
def __init__(self):
20-
raise TypeError("Base types can only be used for type checking purposes: "
21-
"you tried to use a base type instance as argument, "
22-
"but you need to instantiate one of its constructors instead. "
23-
"More info: https://docs.pyrogram.org/telegram/base/{doc_name}")
20+
raise TypeError(
21+
"Base types can only be used for type checking purposes: "
22+
"you tried to use a base type instance as argument, "
23+
"but you need to instantiate one of its constructors instead. "
24+
"More info: https://telegramplayground.github.io/pyrogram/telegram/base/{doc_name}"
25+
)

docs/source/intro/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ If no error shows up you are good to go.
3737
>>> __version__
3838
'2.0.106-TL-158'
3939
40-
.. _`Github repo`: http://github.com/pyrogram/pyrogram
40+
.. _`Github repo`: http://github.com/TelegramPlayGround/pyrogram

docs/source/releases/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Release notes for Pyrogram releases will describe what's new in each version, an
77
When upgrading to a new version of Pyrogram, you will need to check all the changes in order to find incompatible code in your application, but also to take advantage of new features and improvements.
88

99
- :doc:`Changes in this Fork <changes-in-this-fork>`
10-
- `Previous Changes <https://docs.pyrogram.org/releases/>`_.
10+
- `Previous Changes <https://web.archive.org/web/20241127113824/https://docs.pyrogram.org/releases/>`_.

docs/source/start/examples/bot_keyboards.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ like :meth:`~pyrogram.Client.send_audio`, :meth:`~pyrogram.Client.send_document`
4949
),
5050
InlineKeyboardButton( # Opens a web URL
5151
"URL",
52-
url="https://docs.pyrogram.org"
52+
url="https://telegramplayground.github.io/pyrogram/"
5353
),
5454
],
5555
[ # Second row

docs/source/start/examples/inline_queries.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ It uses the :meth:`~pyrogram.Client.on_inline_query` decorator to register an :o
2626
input_message_content=InputTextMessageContent(
2727
"Here's how to install **Pyrogram**"
2828
),
29-
url="https://docs.pyrogram.org/intro/install",
29+
url="https://telegramplayground.github.io/pyrogram/intro/install",
3030
description="How to install Pyrogram",
3131
reply_markup=InlineKeyboardMarkup(
3232
[
3333
[InlineKeyboardButton(
3434
"Open website",
35-
url="https://docs.pyrogram.org/intro/install"
35+
url="https://telegramplayground.github.io/pyrogram/intro/install"
3636
)]
3737
]
3838
)
@@ -42,13 +42,13 @@ It uses the :meth:`~pyrogram.Client.on_inline_query` decorator to register an :o
4242
input_message_content=InputTextMessageContent(
4343
"Here's how to use **Pyrogram**"
4444
),
45-
url="https://docs.pyrogram.org/start/invoking",
45+
url="https://telegramplayground.github.io/pyrogram/start/invoking",
4646
description="How to use Pyrogram",
4747
reply_markup=InlineKeyboardMarkup(
4848
[
4949
[InlineKeyboardButton(
5050
"Open website",
51-
url="https://docs.pyrogram.org/start/invoking"
51+
url="https://telegramplayground.github.io/pyrogram/start/invoking"
5252
)]
5353
]
5454
)

0 commit comments

Comments
 (0)