UpdateBotMessageReactions

class pyrogram.raw.types.UpdateBotMessageReactions

Bots only: the number of reactions on a message with anonymous reactions has changed.

Constructor of Update.

Details:
  • Layer: 223

  • ID: 9CB7759

Parameters:
  • peer (Peer) – Peer of the reacted-to message.

  • msg_id (int 32-bit) – ID of the reacted-to message.

  • date (int 32-bit) – Date of the change.

  • reactions (List of ReactionCount) – New reaction counters.

  • qts (int 32-bit) – QTS event sequence identifier

TL Schema

updateBotMessageReactions#9cb7759
peer:Peer
msg_id:int
date:int
reactions:Vector<ReactionCount>
qts:int

= Update

Parameter Tree

UpdateBotMessageReactions
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── msg_idint
├── dateint
├── reactionsVector < ReactionCount >
│ └── ReactionCount
│ ├── chosen_orderint (optional)
│ ├── reactionReaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ │ └── emoticonstring
│ │ ├── ReactionCustomEmoji
│ │ │ └── document_idlong
│ │ └── ReactionPaid
│ └── countint
└── qtsint

Example

UpdateBotMessageReactions(
    peer=PeerUser(user_id=0),
    msg_id=0,
    date=0,
    reactions=[
            ReactionCount(
                reaction=ReactionEmpty(),
                count=0
            )
        ],
    qts=0,
)