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 Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    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

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.Object
      Returns:
      this.CONSTRUCTOR