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

public static class TdApi.AddPendingPaidMessageReaction extends TdApi.Function<TdApi.Ok>
Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • starCount

      public long 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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR