diff --git a/pyrogram/methods/messages/send_reaction.py b/pyrogram/methods/messages/send_reaction.py index 454989c035..445284e55c 100644 --- a/pyrogram/methods/messages/send_reaction.py +++ b/pyrogram/methods/messages/send_reaction.py @@ -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( diff --git a/pyrogram/types/messages_and_media/chat_boost.py b/pyrogram/types/messages_and_media/chat_boost.py index 7600a12404..d466acf7a0 100644 --- a/pyrogram/types/messages_and_media/chat_boost.py +++ b/pyrogram/types/messages_and_media/chat_boost.py @@ -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), ) diff --git a/pyrogram/types/messages_and_media/story.py b/pyrogram/types/messages_and_media/story.py index e6f9e9b4f9..f208a6bfc6 100644 --- a/pyrogram/types/messages_and_media/story.py +++ b/pyrogram/types/messages_and_media/story.py @@ -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.