Layer 220
MessagesTogglePaidReactionPrivacy
Changes the privacy of already sent paid reactions on a specific message.
method
Users
messages.togglePaidReactionPrivacy#435885b5 peer:InputPeer msg_id:int private:PaidReactionPrivacy = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The channel |
| MsgId | int | 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
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_EMPTY | Empty reaction provided. |
Gogram Example
// MessagesTogglePaidReactionPrivacy - positional arguments result, err := client.MessagesTogglePaidReactionPrivacy(&tg.InputPeerUser{UserID: int64(123456789)}, 0, &tg.PaidReactionPrivacy{}) if err != nil { // handle error } // result is *tg.Bool