Raw.messages.SendPaidReaction

Raw.messages.SendPaidReaction

Sends one or more paid telegram star reactions, transferring telegram stars to a channel’s balance.

messages.sendPaidReaction#9dd6a67b flags:# peer:InputPeer msg_id:int count:int random_id:long private:flags.0?Bool = Updates;
export namespace Raw {
  export namespace messages {
    export class SendPaidReaction {
      constructor(params: {
        peer: Raw.TypeInputPeer;
        msgId: number;
        count: number;
        randomId: bigint;
        private?: boolean;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 198
Constructor ID: 0x9dd6a67b

Property

  • peer : Raw.TypeInputPeer

    The channel

  • msgId : number

    The message to react to

  • count : number

    The number of stars to send (each will increment the reaction counter by one).

  • randomId : bigint

    Unique client message id required to prevent message resending

  • private : boolean or undefined

    Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy. if the user explicitly chose to make their paid reaction(s) private, pass booltrue to messages.sendpaidreaction.private. if the user explicitly chose to make their paid reaction(s) private, pass boolfalse to messages.sendpaidreaction.private. if the user did not make any explicit choice about the privacy of their paid reaction(s) (i.e. when reacting by clicking on an existing star reaction on a message), do not populate the messages.sendpaidreaction.private flag.

Results

Raw.TypeUpdates