messages.togglePaidReactionPrivacy
Changes the privacy of already sent paid reactions on a specific message.
func (c *Client) MessagesTogglePaidReactionPrivacy(ctx context.Context, request *MessagesTogglePaidReactionPrivacyRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesTogglePaidReactionPrivacy(ctx, &tg.MessagesTogglePaidReactionPrivacyRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The channel |
MsgID | int | yes | The ID of the message to which we sent the paid reactions |
Private | PaidReactionPrivacyClass | yes | If true, makes the current anonymous in the top sender leaderboard for this message; otherwise, does the opposite. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_EMPTY | Empty reaction provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.togglePaidReactionPrivacy#435885b5