Skip to content

Commit

Permalink
Fix retracting story reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Sep 4, 2024
1 parent 1de6301 commit bd85dc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/send_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def send_reaction(
rpc = raw.functions.stories.SendReaction(
peer=await self.resolve_peer(chat_id),
story_id=story_id,
reaction=emoji[0] if emoji else None,
reaction=emoji[0] if emoji else raw.types.ReactionEmpty(),
)
else:
rpc = raw.functions.messages.SendReaction(
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/types/messages_and_media/chat_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ def _parse(client: "pyrogram.Client", boost: "raw.types.Boost", users) -> "ChatB
is_gift=getattr(boost, "gift", None),
is_giveaway=getattr(boost, "giveaway", None),
is_unclaimed=getattr(boost, "unclaimed", None),
giveaway_message_id=getattr(boost, "giveaway_msg_id ", None),
giveaway_message_id=getattr(boost, "giveaway_msg_id", None),
used_gift_slug=getattr(boost, "used_gift_slug", None),
)
2 changes: 1 addition & 1 deletion pyrogram/types/messages_and_media/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ async def react(self, emoji: Union[int, str] = None) -> bool:
Parameters:
emoji (``int`` | ``str``, *optional*):
Reaction emoji.
Pass "" as emoji (default) to retract the reaction.
Pass None as emoji (default) to retract the reaction.
Returns:
``bool``: On success, True is returned.
Expand Down

0 comments on commit bd85dc3

Please sign in to comment.