MessageReactions

class pyrogram.raw.types.MessageReactions

Message reactions »

Constructor of MessageReactions.

Details:
  • Layer: 227

  • ID: A339F0B

Parameters:
  • results (List of ReactionCount) – Reactions

  • min (bool, optional) – Similar to min objects, used for message reaction » constructors that are the same for all users so they don’t have the reactions sent by the current user (you can use messages.getMessagesReactions to get the full reaction info).

  • can_see_list (bool, optional) – Whether messages.getMessageReactionsList can be used to see how each specific peer reacted to the message

  • reactions_as_tags (bool, optional) – If set or if there are no reactions, all present and future reactions should be treated as message tags, see here » for more info.

  • recent_reactions (List of MessagePeerReaction, optional) – List of recent peers and their reactions

  • top_reactors (List of MessageReactor, optional) – Paid Telegram Star reactions leaderboard » for this message.

TL Schema

messageReactions#a339f0b
flags:#
min:flags.0?true
can_see_list:flags.2?true
reactions_as_tags:flags.3?true
results:Vector<ReactionCount>
recent_reactions:flags.1?Vector<MessagePeerReaction>
top_reactors:flags.4?Vector<MessageReactor>

= MessageReactions

Parameter Tree

MessageReactions
├── min → true (optional)
├── can_see_list → true (optional)
├── reactions_as_tags → true (optional)
├── results → Vector < ReactionCount >
│ └── ReactionCount
│ ├── chosen_order → int (optional)
│ ├── reaction → Reaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ │ └── emoticon → string
│ │ ├── ReactionCustomEmoji
│ │ │ └── document_id → long
│ │ └── ReactionPaid
│ └── count → int
├── recent_reactions → Vector < MessagePeerReaction > (optional)
│ └── MessagePeerReaction
│ ├── big → true (optional)
│ ├── unread → true (optional)
│ ├── my → true (optional)
│ ├── peer_id → Peer
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── date → int
│ └── reaction → Reaction
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticon → string
│ ├── ReactionCustomEmoji
│ │ └── document_id → long
│ └── ReactionPaid
└── top_reactors → Vector < MessageReactor > (optional)
└── MessageReactor
├── top → true (optional)
├── my → true (optional)
├── anonymous → true (optional)
├── peer_id → Peer (optional)
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
└── count → int

Example

MessageReactions(
    results=[
            ReactionCount(
                reaction=ReactionEmpty(),
                count=0
            )
        ],
)