mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +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",
|
self: "pyrogram.Client",
|
||||||
chat_id: Union[int, str],
|
chat_id: Union[int, str],
|
||||||
message_id: int,
|
message_id: int,
|
||||||
emoji: str = ""
|
emoji: str = "",
|
||||||
|
big: bool = False
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Send a reaction to a message.
|
"""Send a reaction to a message.
|
||||||
|
|
||||||
@ -42,6 +43,10 @@ class SendReaction:
|
|||||||
Reaction emoji.
|
Reaction emoji.
|
||||||
Pass "" as emoji (default) to retract the reaction.
|
Pass "" as emoji (default) to retract the reaction.
|
||||||
|
|
||||||
|
big (``bool``, *optional*):
|
||||||
|
Pass True to show a bigger and longer reaction.
|
||||||
|
Defaults to False.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
``bool``: On success, True is returned.
|
``bool``: On success, True is returned.
|
||||||
|
|
||||||
@ -58,7 +63,8 @@ class SendReaction:
|
|||||||
raw.functions.messages.SendReaction(
|
raw.functions.messages.SendReaction(
|
||||||
peer=await self.resolve_peer(chat_id),
|
peer=await self.resolve_peer(chat_id),
|
||||||
msg_id=message_id,
|
msg_id=message_id,
|
||||||
reaction=emoji
|
reaction=emoji,
|
||||||
|
big=big
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3310,7 +3310,7 @@ class Message(Object, Update):
|
|||||||
else:
|
else:
|
||||||
await self.reply(button, quote=quote)
|
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`.
|
"""Bound method *react* of :obj:`~pyrogram.types.Message`.
|
||||||
|
|
||||||
Use as a shortcut for:
|
Use as a shortcut for:
|
||||||
@ -3333,6 +3333,10 @@ class Message(Object, Update):
|
|||||||
Reaction emoji.
|
Reaction emoji.
|
||||||
Pass "" as emoji (default) to retract the reaction.
|
Pass "" as emoji (default) to retract the reaction.
|
||||||
|
|
||||||
|
big (``bool``, *optional*):
|
||||||
|
Pass True to show a bigger and longer reaction.
|
||||||
|
Defaults to False.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
``bool``: On success, True is returned.
|
``bool``: On success, True is returned.
|
||||||
|
|
||||||
@ -3343,7 +3347,8 @@ class Message(Object, Update):
|
|||||||
return await self._client.send_reaction(
|
return await self._client.send_reaction(
|
||||||
chat_id=self.chat.id,
|
chat_id=self.chat.id,
|
||||||
message_id=self.id,
|
message_id=self.id,
|
||||||
emoji=emoji
|
emoji=emoji,
|
||||||
|
big=big
|
||||||
)
|
)
|
||||||
|
|
||||||
async def retract_vote(
|
async def retract_vote(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user