Move emoji argument above story_id

This commit is contained in:
KurimuzonAkuma 2024-02-03 13:07:11 +03:00
parent acbedec20a
commit 738b96b64c

View File

@ -27,8 +27,8 @@ class SendReaction:
self: "pyrogram.Client", self: "pyrogram.Client",
chat_id: Union[int, str], chat_id: Union[int, str],
message_id: int = None, message_id: int = None,
story_id: int = None,
emoji: Union[int, str, List[Union[int, str]]] = None, emoji: Union[int, str, List[Union[int, str]]] = None,
story_id: int = None,
big: bool = False big: bool = False
) -> bool: ) -> bool:
"""Send a reaction to a message or story. """Send a reaction to a message or story.
@ -42,14 +42,14 @@ class SendReaction:
message_id (``int``, *optional*): message_id (``int``, *optional*):
Identifier of the message. Identifier of the message.
story_id (``int``, *optional*):
Identifier of the story.
emoji (``int`` | ``str`` | List of ``int`` | ``str``, *optional*): emoji (``int`` | ``str`` | List of ``int`` | ``str``, *optional*):
Reaction emoji. Reaction emoji.
Pass None as emoji (default) to retract the reaction. Pass None as emoji (default) to retract the reaction.
Pass list of int or str to react multiple emojis. Pass list of int or str to react multiple emojis.
story_id (``int``, *optional*):
Identifier of the story.
big (``bool``, *optional*): big (``bool``, *optional*):
Pass True to show a bigger and longer reaction. Pass True to show a bigger and longer reaction.
Defaults to False. Defaults to False.