messages.ReadReactions

class pyrogram.raw.functions.messages.ReadReactions

Mark message reactions » as read

Details:
  • Layer: 223

  • ID: 9EC44F93

Parameters:
  • peer (InputPeer) – Peer

  • top_msg_id (int 32-bit, optional) – Mark as read only reactions to messages within the specified forum topic

  • saved_peer_id (InputPeer, optional) – If set, must be equal to the ID of a monoforum topic: will affect that topic in the monoforum passed in peer.

Returns:

messages.AffectedHistory

TL Schema

messages.readReactions#9ec44f93
flags:#
peer:InputPeer
top_msg_id:flags.0?int
saved_peer_id:flags.1?InputPeer

= messages.AffectedHistory

Parameter Tree

ReadReactions
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── top_msg_idint (optional)
└── saved_peer_idInputPeer (optional)
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    ReadReactions(
        peer=await app.resolve_peer(chat_id),
        top_msg_id=0,
        saved_peer_id=await app.resolve_peer(chat_id),
    )
)