Package org.drinkless.tdlib
Class TdApi.AddPendingPaidMessageReaction
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.AddPendingPaidMessageReaction
- Enclosing class:
- TdApi
Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat to which the message belongs.static final int
Identifier uniquely determining type of the object.long
Identifier of the message.long
Number of Telegram Stars to be used for the reaction.Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which adds the paid message reaction to a message.AddPendingPaidMessageReaction
(long chatId, long messageId, long starCount, TdApi.PaidReactionType type) Creates a function, which adds the paid message reaction to a message. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message belongs. -
messageId
public long messageIdIdentifier of the message. -
starCount
public long starCountNumber 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"). -
type
Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddPendingPaidMessageReaction
public AddPendingPaidMessageReaction()Default constructor for a function, which adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message.Returns
Ok
-
AddPendingPaidMessageReaction
public AddPendingPaidMessageReaction(long chatId, long messageId, long starCount, TdApi.PaidReactionType type) Creates a function, which adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message.Returns
Ok
- Parameters:
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").type
- Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-