messages.TogglePaidReactionPrivacy

class pyrogram.raw.functions.messages.TogglePaidReactionPrivacy

Changes the privacy of already sent paid reactions on a specific message.

Details:
  • Layer: 223

  • ID: 435885B5

Parameters:
  • peer (InputPeer) – The channel

  • msg_id (int 32-bit) – The ID of the message to which we sent the paid reactions

  • private (PaidReactionPrivacy) – If true, makes the current anonymous in the top sender leaderboard for this message; otherwise, does the opposite.

Returns:

bool

TL Schema

messages.togglePaidReactionPrivacy#435885b5
peer:InputPeer
msg_id:int
private:PaidReactionPrivacy

= Bool

Parameter Tree

TogglePaidReactionPrivacy
├── 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
├── msg_idint
└── privatePaidReactionPrivacy

Example

await app.invoke(
    TogglePaidReactionPrivacy(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        private=PaidReactionPrivacyDefault(),
    )
)