diff --git a/docs/source/index.rst b/docs/source/index.rst index ddeab073b..1ef1a75bc 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,4 +1,4 @@ -Welcome to PyrogramMod +Welcome to Pyrogram-Mod =================== .. raw:: html @@ -6,7 +6,7 @@ Welcome to PyrogramMod
Pyrogram
-
Pyrogram Mod
+
Pyrogram-Mod
@@ -14,11 +14,11 @@ Welcome to PyrogramMod Telegram MTProto API Framework for Python
- + Homepage • - + Development • diff --git a/docs/source/intro/quickstart.rst b/docs/source/intro/quickstart.rst index e97ef448d..6792c8829 100644 --- a/docs/source/intro/quickstart.rst +++ b/docs/source/intro/quickstart.rst @@ -10,9 +10,13 @@ Get Pyrogram Real Fast :class: tip If you need a cloud server to host your applications, try Hetzner Cloud. You can sign up with - `this link `_ to get €20 in cloud credits. + `this link `_ to get €20 in cloud credits. -1. Install Pyrogram with ``pip3 install -U https://github.com/pyrogrammod/pyrogrammod/archive/main.zip``. +0. Create a Virtual Environment with ``python3 -m venv venv``. + +0. Activate the Virtual Environment with ``source ./venv/bin/activate``. + +1. Install Pyrogram with ``pip uninstall -y pyrogram && pip install https://github.com/TelegramPlayGround/pyrogram/archive/unknown_errors.zip``. 2. Get your own Telegram API key from https://my.telegram.org/apps. diff --git a/pyrogram/methods/messages/set_message_reaction.py b/pyrogram/methods/messages/set_message_reaction.py index b726ba8ee..5d156a9b6 100644 --- a/pyrogram/methods/messages/set_message_reaction.py +++ b/pyrogram/methods/messages/set_message_reaction.py @@ -29,7 +29,8 @@ async def set_message_reaction( chat_id: Union[int, str], message_id: int = None, reaction: List["types.ReactionType"] = [], - is_big: bool = False + is_big: bool = False, + add_to_recent: bool = True ) -> "types.MessageReactions": """Use this method to change the chosen reactions on a message. Service messages can't be reacted to. @@ -54,8 +55,12 @@ async def set_message_reaction( Pass True to set the reaction with a big animation. Defaults to False. + add_to_recent (``bool``, *optional*): + Pass True if the reaction should appear in the recently used reactions. + This option is applicable only for users. + Defaults to True. Returns: - :obj: `~pyrogram.types.MessageReactions`: On success, True is returned. + On success, List of :obj:`~pyrogram.types.MessageReactions`: is returned. Example: .. code-block:: python @@ -78,7 +83,8 @@ async def set_message_reaction( r.write(self) for r in reaction ] if reaction else [raw.types.ReactionEmpty()], - big=is_big + big=is_big, + add_to_recent=add_to_recent ) ) for i in r.updates: diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 23dbdb7b1..3884eb078 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -3356,7 +3356,8 @@ async def click(self, x: Union[int, str] = 0, y: int = None, quote: bool = None, async def react( self, reaction: List["types.ReactionType"] = [], - is_big: bool = False + is_big: bool = False, + add_to_recent: bool = True ) -> "types.MessageReactions": """Bound method *react* of :obj:`~pyrogram.types.Message`. @@ -3389,7 +3390,7 @@ async def react( Defaults to False. Returns: - :obj: `~pyrogram.types.MessageReactions`: On success, True is returned. + On success, List of :obj:`~pyrogram.types.MessageReactions`: is returned. Raises: RPCError: In case of a Telegram RPC error. @@ -3399,7 +3400,8 @@ async def react( chat_id=self.chat.id, message_id=self.id, reaction=reaction, - is_big=is_big + is_big=is_big, + add_to_recent=add_to_recent ) async def retract_vote(