public static class TdApi.AddPendingPaidMessageReaction extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat to which the message belongs.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isAnonymous
Pass true to make paid reaction of the user on the message anonymous; pass false to make the user's profile visible among top reactors.
|
long |
messageId
Identifier of the message.
|
long |
starCount
Number of Telegram Stars to be used for the reaction.
|
boolean |
useDefaultIsAnonymous
Pass true if the user didn't choose anonymity explicitly, for example, the reaction is set from the message bubble.
|
| Constructor and Description |
|---|
AddPendingPaidMessageReaction()
Default constructor for a function, which adds the paid message reaction to a message.
|
AddPendingPaidMessageReaction(long chatId,
long messageId,
long starCount,
boolean useDefaultIsAnonymous,
boolean isAnonymous)
Creates a function, which adds the paid message reaction to a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public long starCount
public boolean useDefaultIsAnonymous
public boolean isAnonymous
public static final int CONSTRUCTOR
public AddPendingPaidMessageReaction()
Returns Ok
public AddPendingPaidMessageReaction(long chatId,
long messageId,
long starCount,
boolean useDefaultIsAnonymous,
boolean isAnonymous)
Returns Ok
chatId - Identifier of the chat to which the message belongs.messageId - Identifier of the message.starCount - Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max").useDefaultIsAnonymous - Pass true if the user didn't choose anonymity explicitly, for example, the reaction is set from the message bubble.isAnonymous - Pass true to make paid reaction of the user on the message anonymous; pass false to make the user's profile visible among top reactors. Ignored if useDefaultIsAnonymous == true.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object