Message.get_reactions()

Message.get_reactions()[source]

Bound method get_reactions of Message.

Use as a shortcut for:

client.get_message_reactions(
    chat_id=message.chat.id,
    message_id=message.id
)
Parameters:
  • reaction (str | int | Reaction, optional) – Target reaction to filter by. Defaults to None (returns all reactions).

  • limit (int, optional) – Limits the number of reactions to be retrieved. By default, no limit is applied and all reactions are returned.

Example

async for reaction in message.get_reactions():
    print(reaction.user.first_name, reaction.reaction)
Returns:

Generator – A generator yielding MessagePeerReaction objects.