MessageReactions

class pyrogram.raw.types.MessageReactions

Message reactions »

Constructor of MessageReactions.

Details:
  • Layer: 223

  • 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
├── mintrue (optional)
├── can_see_listtrue (optional)
├── reactions_as_tagstrue (optional)
├── resultsVector < ReactionCount >
│ └── ReactionCount
│ ├── chosen_orderint (optional)
│ ├── reactionReaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ │ └── emoticonstring
│ │ ├── ReactionCustomEmoji
│ │ │ └── document_idlong
│ │ └── ReactionPaid
│ └── countint
├── recent_reactionsVector < MessagePeerReaction > (optional)
│ └── MessagePeerReaction
│ ├── bigtrue (optional)
│ ├── unreadtrue (optional)
│ ├── mytrue (optional)
│ ├── peer_idPeer
│ │ ├── PeerUser
│ │ │ └── user_idlong
│ │ ├── PeerChat
│ │ │ └── chat_idlong
│ │ └── PeerChannel
│ │ └── channel_idlong
│ ├── dateint
│ └── reactionReaction
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticonstring
│ ├── ReactionCustomEmoji
│ │ └── document_idlong
│ └── ReactionPaid
└── top_reactorsVector < MessageReactor > (optional)
└── MessageReactor
├── toptrue (optional)
├── mytrue (optional)
├── anonymoustrue (optional)
├── peer_idPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
└── countint

Example

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