From f990b1e7f9ebace757bcf37d8d5e460bc9e3b395 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sun, 13 Oct 2024 01:51:49 +0700 Subject: [PATCH] pyrofork: Update documentation url Signed-off-by: wulan17 --- README.md | 6 +++--- compiler/api/template/type.txt | 2 +- docs/source/conf.py | 2 +- docs/source/start/examples/bot_keyboards.rst | 2 +- docs/source/start/examples/inline_queries.rst | 8 ++++---- docs/source/start/examples/welcome_bot.rst | 2 +- pyproject.toml | 2 +- pyrogram/client.py | 2 +- pyrogram/crypto/aes.py | 2 +- pyrogram/methods/messages/send_message.py | 4 ++-- pyrogram/methods/users/update_profile.py | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index d6c821bc..c8c4d6a0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Homepage • - + Documentation • @@ -44,7 +44,7 @@ async def hello(client, message): app.run() ``` -**Pyrofork** is a modern, elegant and asynchronous [MTProto API](https://pyrofork.mayuri.my.id/main/topics/mtproto-vs-botapi) +**Pyrofork** is a modern, elegant and asynchronous [MTProto API](https://pyrofork.wulan17.top/main/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. @@ -72,6 +72,6 @@ pip3 install pyrofork ### Resources -- Check out the docs at https://pyrofork.mayuri.my.id to learn more about Pyrofork, get started right +- Check out the docs at https://pyrofork.wulan17.top to learn more about Pyrofork, get started right away and discover more in-depth material for building your client applications. - Join the official group at https://t.me/MayuriChan_Chat and stay tuned for news, updates and announcements. diff --git a/compiler/api/template/type.txt b/compiler/api/template/type.txt index 3774fb0a..c8ddbba5 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://pyrofork.mayuri.my.id/telegram/base/{doc_name}") + "More info: https://pyrofork.wulan17.top/telegram/base/{doc_name}") diff --git a/docs/source/conf.py b/docs/source/conf.py index a6163641..60c8101e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -73,7 +73,7 @@ html_theme_options = { "repo": "fontawesome/brands/github", "edit": "material/file-edit-outline", }, - "site_url": "https://pyrofork.mayuri.my.id/", + "site_url": "https://pyrofork.wulan17.top/", "repo_url": "https://github.com/Mayuri-Chan/pyrofork/", "repo_name": "pyrofork", "globaltoc_collapse": True, diff --git a/docs/source/start/examples/bot_keyboards.rst b/docs/source/start/examples/bot_keyboards.rst index a98389a3..cd06b978 100644 --- a/docs/source/start/examples/bot_keyboards.rst +++ b/docs/source/start/examples/bot_keyboards.rst @@ -47,7 +47,7 @@ like send_audio(), send_document(), send_location(), etc... ), InlineKeyboardButton( # Opens a web URL "URL", - url="https://pyrofork.mayuri.my.id" + url="https://pyrofork.wulan17.top" ), ], [ # Second row diff --git a/docs/source/start/examples/inline_queries.rst b/docs/source/start/examples/inline_queries.rst index 537762e4..45f9627e 100644 --- a/docs/source/start/examples/inline_queries.rst +++ b/docs/source/start/examples/inline_queries.rst @@ -24,13 +24,13 @@ It uses the @on_inline_query decorator to register an InlineQueryHandler. input_message_content=InputTextMessageContent( "Here's how to install **Pyrofork**" ), - url="https://pyrofork.mayuri.my.id/intro/install", + url="https://pyrofork.wulan17.top/intro/install", description="How to install Pyrofork", reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton( "Open website", - url="https://pyrofork.mayuri.my.id/intro/install" + url="https://pyrofork.wulan17.top/intro/install" )] ] ) @@ -40,13 +40,13 @@ It uses the @on_inline_query decorator to register an InlineQueryHandler. input_message_content=InputTextMessageContent( "Here's how to use **Pyrofork**" ), - url="https://pyrofork.mayuri.my.id/start/invoking", + url="https://pyrofork.wulan17.top/start/invoking", description="How to use Pyrofork", reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton( "Open website", - url="https://pyrofork.mayuri.my.id/start/invoking" + url="https://pyrofork.wulan17.top/start/invoking" )] ] ) diff --git a/docs/source/start/examples/welcome_bot.rst b/docs/source/start/examples/welcome_bot.rst index 8610aca6..df9a8d88 100644 --- a/docs/source/start/examples/welcome_bot.rst +++ b/docs/source/start/examples/welcome_bot.rst @@ -11,7 +11,7 @@ to make it only work for specific messages in a specific chat. # Target chat. Can also be a list of multiple chat ids/usernames TARGET = -100123456789 # Welcome message template - MESSAGE = "{} Welcome to [Pyrofork](https://pyrofork.mayuri.my.id/)'s group chat {}!" + MESSAGE = "{} Welcome to [Pyrofork](https://pyrofork.wulan17.top/)'s group chat {}!" app = Client("my_account") diff --git a/pyproject.toml b/pyproject.toml index 02d5d8a0..a40b2e87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ Homepage = "https://github.com/Mayuri-Chan" Tracker = "https://github.com/Mayuri-Chan/pyrofork/issues" Community = "https://t.me/MayuriChan_Chat" Source = "https://github.com/Mayuri-Chan/pyrofork" -Documentation = "https://pyrofork.mayuri.my.id" +Documentation = "https://pyrofork.wulan17.top" [build-system] requires = ["hatchling"] diff --git a/pyrogram/client.py b/pyrogram/client.py index ecde9e01..5c19df82 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -810,7 +810,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://pyrofork.mayuri.my.id/main/start/auth") + "More info: https://pyrofork.wulan17.top/main/start/auth") await self.storage.api_id(self.api_id) diff --git a/pyrogram/crypto/aes.py b/pyrogram/crypto/aes.py index 3a7a9209..a324188c 100644 --- a/pyrogram/crypto/aes.py +++ b/pyrogram/crypto/aes.py @@ -55,7 +55,7 @@ except ImportError: log.warning( "TgCrypto is missing! " "Pyrogram will work the same, but at a much slower speed. " - "More info: https://pyrofork.mayuri.my.id/main/topics/speedups" + "More info: https://pyrofork.wulan17.top/main/topics/speedups" ) diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index 54dfd348..56b7efe9 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -133,7 +133,7 @@ class SendMessage: await app.send_message("me", "Message sent with **Pyrogram**!") # Disable web page previews - await app.send_message("me", "https://pyrofork.mayuri.my.id", + await app.send_message("me", "https://pyrofork.wulan17.top", disable_web_page_preview=True) # Reply to a message using its id @@ -157,7 +157,7 @@ class SendMessage: reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton("Data", callback_data="callback_data")], - [InlineKeyboardButton("Docs", url="https://pyrofork.mayuri.my.id")] + [InlineKeyboardButton("Docs", url="https://pyrofork.wulan17.top")] ])) """ diff --git a/pyrogram/methods/users/update_profile.py b/pyrogram/methods/users/update_profile.py index 6719c48a..b41169e6 100644 --- a/pyrogram/methods/users/update_profile.py +++ b/pyrogram/methods/users/update_profile.py @@ -56,7 +56,7 @@ class UpdateProfile: await app.update_profile(first_name="Pyrofork") # Update first name and bio - await app.update_profile(first_name="Pyrofork", bio="https://pyrofork.mayuri.my.id/") + await app.update_profile(first_name="Pyrofork", bio="https://pyrofork.wulan17.top/") # Remove the last name await app.update_profile(last_name="")