UpdateBotMessageReaction

class pyrogram.raw.types.UpdateBotMessageReaction

Bots only: a user has changed their reactions on a message with public reactions.

Constructor of Update.

Details:
  • Layer: 223

  • ID: AC21D3CE

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.

  • actor (Peer) – The user that (un)reacted to the message.

  • old_reactions (List of Reaction) – Old reactions

  • new_reactions (List of Reaction) – New reactions

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

TL Schema

updateBotMessageReaction#ac21d3ce
peer:Peer
msg_id:int
date:int
actor:Peer
old_reactions:Vector<Reaction>
new_reactions:Vector<Reaction>
qts:int

= Update

Parameter Tree

UpdateBotMessageReaction
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── msg_idint
├── dateint
├── actorPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── old_reactionsVector < Reaction >
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticonstring
│ ├── ReactionCustomEmoji
│ │ └── document_idlong
│ └── ReactionPaid
├── new_reactionsVector < Reaction >
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticonstring
│ ├── ReactionCustomEmoji
│ │ └── document_idlong
│ └── ReactionPaid
└── qtsint

Example

UpdateBotMessageReaction(
    peer=PeerUser(user_id=0),
    msg_id=0,
    date=0,
    actor=PeerUser(user_id=0),
    old_reactions=[
            ReactionEmpty()
        ],
    new_reactions=[
            ReactionEmpty()
        ],
    qts=0,
)