mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Add missing parameter to send_reaction (#993)
This commit is contained in:
parent
050a7304ba
commit
d984ae24d5
@ -27,7 +27,8 @@ class SendReaction:
|
||||
self: "pyrogram.Client",
|
||||
chat_id: Union[int, str],
|
||||
message_id: int,
|
||||
emoji: str = ""
|
||||
emoji: str = "",
|
||||
big: bool = False
|
||||
) -> bool:
|
||||
"""Send a reaction to a message.
|
||||
|
||||
@ -41,6 +42,10 @@ class SendReaction:
|
||||
emoji (``str``, *optional*):
|
||||
Reaction emoji.
|
||||
Pass "" as emoji (default) to retract the reaction.
|
||||
|
||||
big (``bool``, *optional*):
|
||||
Pass True to show a bigger and longer reaction.
|
||||
Defaults to False.
|
||||
|
||||
Returns:
|
||||
``bool``: On success, True is returned.
|
||||
@ -58,7 +63,8 @@ class SendReaction:
|
||||
raw.functions.messages.SendReaction(
|
||||
peer=await self.resolve_peer(chat_id),
|
||||
msg_id=message_id,
|
||||
reaction=emoji
|
||||
reaction=emoji,
|
||||
big=big
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -3310,7 +3310,7 @@ class Message(Object, Update):
|
||||
else:
|
||||
await self.reply(button, quote=quote)
|
||||
|
||||
async def react(self, emoji: str = "") -> bool:
|
||||
async def react(self, emoji: str = "", big: bool = False) -> bool:
|
||||
"""Bound method *react* of :obj:`~pyrogram.types.Message`.
|
||||
|
||||
Use as a shortcut for:
|
||||
@ -3332,6 +3332,10 @@ class Message(Object, Update):
|
||||
emoji (``str``, *optional*):
|
||||
Reaction emoji.
|
||||
Pass "" as emoji (default) to retract the reaction.
|
||||
|
||||
big (``bool``, *optional*):
|
||||
Pass True to show a bigger and longer reaction.
|
||||
Defaults to False.
|
||||
|
||||
Returns:
|
||||
``bool``: On success, True is returned.
|
||||
@ -3343,7 +3347,8 @@ class Message(Object, Update):
|
||||
return await self._client.send_reaction(
|
||||
chat_id=self.chat.id,
|
||||
message_id=self.id,
|
||||
emoji=emoji
|
||||
emoji=emoji,
|
||||
big=big
|
||||
)
|
||||
|
||||
async def retract_vote(
|
||||
|
Loading…
x
Reference in New Issue
Block a user