diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 19d0cd78..f69bb1d6 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ -github: delivrance -liberapay: delivrance -open_collective: pyrogram +github: Mayuri-Chan +ko_fi: wulan17 +custom: ["https://saweria.co/wulan17", "https://paypal.me/wulan17", "https://trakteer.id/wulan17"] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 3b0ff4ee..ef4c8db6 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -10,7 +10,7 @@ body: required: true - label: I have searched in the issue tracker for similar bug reports, including closed ones required: true - - label: I ran `pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip` and reproduced the issue using the latest development version + - label: I ran `pip3 install -U https://github.com/Mayuri-Chan/pyrofork/archive/master.zip` and reproduced the issue using the latest development version required: true - type: textarea diff --git a/NOTICE b/NOTICE index 7a9aaab6..a27cbebb 100644 --- a/NOTICE +++ b/NOTICE @@ -1,17 +1,18 @@ -Pyrogram - Telegram MTProto API Client Library for Python +Pyrofork - Telegram MTProto API Client Library for Python Copyright (C) 2017-present Dan +Copyright (C) 2022-present Mayuri-Chan -This file is part of Pyrogram. +This file is part of Pyrofork. -Pyrogram is free software: you can redistribute it and/or modify +Pyrofork is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -Pyrogram is distributed in the hope that it will be useful, +Pyrofork is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License -along with Pyrogram. If not, see . \ No newline at end of file +along with Pyrofork. If not, see . \ No newline at end of file diff --git a/README.md b/README.md index 6b904e29..a6ba9d6c 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,16 @@

- - Pyrogram + + Pyrofork
Telegram MTProto API Framework for Python
- - Homepage - - • - + Documentation - • - - Releases - - • - - News -

-## Pyrogram +## Pyrofork > Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots @@ -34,27 +22,25 @@ app = Client("my_account") @app.on_message(filters.private) async def hello(client, message): - await message.reply("Hello from Pyrogram!") + await message.reply("Hello from Pyrofork!") app.run() ``` -**Pyrogram** is a modern, elegant and asynchronous [MTProto API](https://docs.pyrogram.org/topics/mtproto-vs-botapi) +**Pyrofork** is a modern, elegant and asynchronous [MTProto API](https://pyrofork.mayuri.my.id/topics/mtproto-vs-botapi) framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python. ### Support -If you'd like to support Pyrogram, you can consider: +If you'd like to support Pyrofork, you can consider: -- [Become a GitHub sponsor](https://github.com/sponsors/delivrance). -- [Become a LiberaPay patron](https://liberapay.com/delivrance). -- [Become an OpenCollective backer](https://opencollective.com/pyrogram). +- [Become a GitHub sponsor](https://github.com/sponsors/Mayuri-Chan). ### Key Features -- **Ready**: Install Pyrogram with pip and start building your applications right away. +- **Ready**: Install Pyrofork with pip and start building your applications right away. - **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages. - **Elegant**: Low-level details are abstracted and re-presented in a more convenient way. - **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C. @@ -65,11 +51,11 @@ If you'd like to support Pyrogram, you can consider: ### Installing ``` bash -pip3 install pyrogram +pip3 install pyrofork ``` ### Resources -- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right +- Check out the docs at https://pyrofork.mayuri.my.id to learn more about Pyrofork, get started right away and discover more in-depth material for building your client applications. -- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements. +- Join the official group at https://t.me/MayuriChan_Chat and stay tuned for news, updates and announcements. diff --git a/compiler/__init__.py b/compiler/__init__.py index 46887cb7..c0ec805b 100644 --- a/compiler/__init__.py +++ b/compiler/__init__.py @@ -1,17 +1,18 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . diff --git a/compiler/api/__init__.py b/compiler/api/__init__.py index 46887cb7..c0ec805b 100644 --- a/compiler/api/__init__.py +++ b/compiler/api/__init__.py @@ -1,17 +1,18 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index c29b7ed8..82e07dc9 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -1,20 +1,21 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . import json import os diff --git a/compiler/api/template/type.txt b/compiler/api/template/type.txt index 99310359..3774fb0a 100644 --- a/compiler/api/template/type.txt +++ b/compiler/api/template/type.txt @@ -20,4 +20,4 @@ class {name}: # type: ignore raise TypeError("Base types can only be used for type checking purposes: " "you tried to use a base type instance as argument, " "but you need to instantiate one of its constructors instead. " - "More info: https://docs.pyrogram.org/telegram/base/{doc_name}") + "More info: https://pyrofork.mayuri.my.id/telegram/base/{doc_name}") diff --git a/compiler/docs/__init__.py b/compiler/docs/__init__.py index 46887cb7..c0ec805b 100644 --- a/compiler/docs/__init__.py +++ b/compiler/docs/__init__.py @@ -1,17 +1,18 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index 12a4d972..722791b4 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -1,20 +1,21 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . import ast import os diff --git a/compiler/docs/template/bound-methods.rst b/compiler/docs/template/bound-methods.rst index 1e16e32c..02061e00 100644 --- a/compiler/docs/template/bound-methods.rst +++ b/compiler/docs/template/bound-methods.rst @@ -1,7 +1,7 @@ Bound Methods ============= -Some Pyrogram types define what are called bound methods. Bound methods are functions attached to a type which are +Some Pyrofork types define what are called bound methods. Bound methods are functions attached to a type which are accessed via an instance of that type. They make it even easier to call specific methods by automatically inferring some of the required arguments. diff --git a/compiler/docs/template/methods.rst b/compiler/docs/template/methods.rst index f76e249d..35123f6a 100644 --- a/compiler/docs/template/methods.rst +++ b/compiler/docs/template/methods.rst @@ -1,7 +1,7 @@ Available Methods ================= -This page is about Pyrogram methods. All the methods listed here are bound to a :class:`~pyrogram.Client` instance, +This page is about Pyrofork methods. All the methods listed here are bound to a :class:`~pyrogram.Client` instance, except for :meth:`~pyrogram.idle()` and :meth:`~pyrogram.compose()`, which are special functions that can be found in the main package directly. diff --git a/compiler/docs/template/types.rst b/compiler/docs/template/types.rst index e404ad4c..ea5d58a2 100644 --- a/compiler/docs/template/types.rst +++ b/compiler/docs/template/types.rst @@ -1,7 +1,7 @@ Available Types =============== -This page is about Pyrogram Types. All types listed here are available through the ``pyrogram.types`` package. +This page is about Pyrofork Types. All types listed here are available through the ``pyrogram.types`` package. Unless required as argument to a client method, most of the types don't need to be manually instantiated because they are only returned by other methods. You also don't need to import them, unless you want to type-hint your variables. diff --git a/compiler/errors/__init__.py b/compiler/errors/__init__.py index 46887cb7..c0ec805b 100644 --- a/compiler/errors/__init__.py +++ b/compiler/errors/__init__.py @@ -1,17 +1,18 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . diff --git a/compiler/errors/compiler.py b/compiler/errors/compiler.py index 0c4ef399..383ae06f 100644 --- a/compiler/errors/compiler.py +++ b/compiler/errors/compiler.py @@ -1,20 +1,21 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . import csv import os diff --git a/compiler/errors/sort.py b/compiler/errors/sort.py index db94e351..3aa41270 100644 --- a/compiler/errors/sort.py +++ b/compiler/errors/sort.py @@ -1,20 +1,21 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan +# Copyright (C) 2022-present Mayuri-Chan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . import csv from pathlib import Path diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 9a6a44ac..53bf61f2 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -1,24 +1,25 @@ -# Pyrogram - Telegram MTProto API Client Library for Python +# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan # -# This file is part of Pyrogram. +# This file is part of Pyrofork. # -# Pyrogram is free software: you can redistribute it and/or modify +# Pyrofork is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# Pyrogram is distributed in the hope that it will be useful, +# Pyrofork is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . +# along with Pyrofork. If not, see . +__fork_name__ = "PyroFork" __version__ = "2.0.106" __license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)" -__copyright__ = "Copyright (C) 2017-present Dan " +__copyright__ = "Copyright (C) 2022-present Mayuri-Chan " from concurrent.futures.thread import ThreadPoolExecutor diff --git a/pyrogram/client.py b/pyrogram/client.py index c74634ea..648b8d09 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -625,7 +625,7 @@ class Client(Methods): if session_empty: if not self.api_id or not self.api_hash: raise AttributeError("The API key is required for new authorizations. " - "More info: https://docs.pyrogram.org/start/auth") + "More info: https://pyrofork.mayuri.my.id/start/auth") await self.storage.api_id(self.api_id) diff --git a/pyrogram/crypto/aes.py b/pyrogram/crypto/aes.py index bb937128..2e96f971 100644 --- a/pyrogram/crypto/aes.py +++ b/pyrogram/crypto/aes.py @@ -54,7 +54,7 @@ except ImportError: log.warning( "TgCrypto is missing! " "Pyrogram will work the same, but at a much slower speed. " - "More info: https://docs.pyrogram.org/topics/speedups" + "More info: https://pyrofork.mayuri.my.id/topics/speedups" ) diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index ad73f9a1..09a5e4d9 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -93,7 +93,7 @@ class SendMessage: await app.send_message("me", "Message sent with **Pyrogram**!") # Disable web page previews - await app.send_message("me", "https://docs.pyrogram.org", + await app.send_message("me", "https://pyrofork.mayuri.my.id", disable_web_page_preview=True) # Reply to a message using its id @@ -117,7 +117,7 @@ class SendMessage: reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton("Data", callback_data="callback_data")], - [InlineKeyboardButton("Docs", url="https://docs.pyrogram.org")] + [InlineKeyboardButton("Docs", url="https://pyrofork.mayuri.my.id")] ])) """ diff --git a/pyrogram/methods/users/update_profile.py b/pyrogram/methods/users/update_profile.py index 6c10d16c..50747214 100644 --- a/pyrogram/methods/users/update_profile.py +++ b/pyrogram/methods/users/update_profile.py @@ -52,10 +52,10 @@ class UpdateProfile: .. code-block:: python # Update your first name only - await app.update_profile(first_name="Pyrogram") + await app.update_profile(first_name="Pyrofork") # Update first name and bio - await app.update_profile(first_name="Pyrogram", bio="https://docs.pyrogram.org/") + await app.update_profile(first_name="Pyrofork", bio="https://pyrofork.mayuri.my.id/") # Remove the last name await app.update_profile(last_name="") diff --git a/setup.py b/setup.py index 2cb7d7f6..f6d7349a 100644 --- a/setup.py +++ b/setup.py @@ -38,15 +38,15 @@ if len(argv) > 1 and argv[1] in ["bdist_wheel", "install", "develop"]: errors_compiler.start() setup( - name="Pyrogram", + name="PyroFork", version=version, description="Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots", long_description=readme, long_description_content_type="text/markdown", - url="https://github.com/pyrogram", - download_url="https://github.com/pyrogram/pyrogram/releases/latest", - author="Dan", - author_email="dan@pyrogram.org", + url="https://github.com/Mayuri-Chan/pyrogram", + download_url="https://github.com/Mayuri-Chan/pyrogram/releases/latest", + author="wulan17", + author_email="mayuri@mayuri.my.id", license="LGPLv3", classifiers=[ "Development Status :: 5 - Production/Stable", @@ -73,10 +73,10 @@ setup( ], keywords="telegram chat messenger mtproto api client library python", project_urls={ - "Tracker": "https://github.com/pyrogram/pyrogram/issues", - "Community": "https://t.me/pyrogram", - "Source": "https://github.com/pyrogram/pyrogram", - "Documentation": "https://docs.pyrogram.org", + "Tracker": "https://github.com/Mayuri-Chan/pyrofork/issues", + "Community": "", + "Source": "https://github.com/Mayuri-Chan/pyrofork", + "Documentation": "https://pyrofork.mayuri.my.id", }, python_requires="~=3.7", package_data={