Raw.messages.SendPaidReaction
Sends one or more paid telegram star reactions, transferring telegram stars to a channel’s balance.
messages.sendPaidReaction#58bbcb50 flags:# peer:InputPeer msg_id:int count:int random_id:long private:flags.0?PaidReactionPrivacy = Updates;
export namespace Raw {
export namespace messages {
export class SendPaidReaction {
constructor(params: {
peer: Raw.TypeInputPeer;
msgId: number;
count: number;
randomId: bigint;
private?: Raw.TypePaidReactionPrivacy;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 201
Constructor ID: 0x58bbcb50
Property
peer
: Raw.TypeInputPeerThe channel
msgId
: numberThe message to react to
count
: numberThe number of stars to send (each will increment the reaction counter by one).
randomId
: bigintUnique client message id required to prevent message resending
private
: Raw.TypePaidReactionPrivacy or undefinedEach 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) not 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.