Skip to content

Commit

Permalink
Fix reaction documentation, according to Layer 196
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Jan 5, 2025
1 parent 4bc566e commit 0673ba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyrogram/methods/messages/set_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ async def set_reaction(
add_to_recent: bool = True
) -> "types.MessageReactions":
"""Use this method to change the chosen reactions on a message.
Service messages can't be reacted to.
Automatically forwarded messages from a channel to its discussion group have the
same available reactions as messages in the channel.
Bots can't react to service messages.
Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel.
Bots can't use paid reactions.
You must use exactly one of ``message_id`` OR ``story_id``.
Expand Down
1 change: 1 addition & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ async def _parse(
contact_registered=contact_registered,
chat_join_type=chat_join_type,
screenshot_taken=screenshot_taken,
reactions=types.MessageReactions._parse(client, message.reactions) if message.reactions else None,
client=client
)

Expand Down

0 comments on commit 0673ba9

Please sign in to comment.