Class TdApi.StarTransactionTypeUpgradedGiftSale

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeUpgradedGiftSale
Enclosing class:
TdApi

public static class TdApi.StarTransactionTypeUpgradedGiftSale extends TdApi.StarTransactionType
The transaction is a sale of an upgraded gift; for regular users only.
  • Field Details

    • userId

      public long userId
      Identifier of the user that bought the gift.
    • gift

      public TdApi.UpgradedGift gift
      The gift.
    • affiliate

      public TdApi.AffiliateInfo affiliate
      Information about commission received by Telegram from the transaction.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • StarTransactionTypeUpgradedGiftSale

      public StarTransactionTypeUpgradedGiftSale()
      The transaction is a sale of an upgraded gift; for regular users only.
    • StarTransactionTypeUpgradedGiftSale

      public StarTransactionTypeUpgradedGiftSale(long userId, TdApi.UpgradedGift gift, TdApi.AffiliateInfo affiliate)
      The transaction is a sale of an upgraded gift; for regular users only.
      Parameters:
      userId - Identifier of the user that bought the gift.
      gift - The gift.
      affiliate - Information about commission received by Telegram from the transaction.
  • 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