messages.TogglePaidReactionPrivacy

class pyrogram.raw.functions.messages.TogglePaidReactionPrivacy

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

Details:
  • Layer: 227

  • 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
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
└── private → PaidReactionPrivacy

Example

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