Class TdApi.MessageGiftedStars

Enclosing class:
TdApi

public static class TdApi.MessageGiftedStars extends TdApi.MessageContent
Telegram Stars were gifted to a user.
  • Field Details

    • gifterUserId

      public long gifterUserId
      The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.
    • receiverUserId

      public long receiverUserId
      The identifier of a user who received Telegram Stars; 0 if the gift is incoming.
    • currency

      public String currency
      Currency for the paid amount.
    • amount

      public long amount
      The paid amount, in the smallest units of the currency.
    • cryptocurrency

      public String cryptocurrency
      Cryptocurrency used to pay for the gift; may be empty if none.
    • cryptocurrencyAmount

      public long cryptocurrencyAmount
      The paid amount, in the smallest units of the cryptocurrency; 0 if none.
    • starCount

      public long starCount
      Number of Telegram Stars that were gifted.
    • transactionId

      public String transactionId
      Identifier of the transaction for Telegram Stars purchase; for receiver only.
    • sticker

      @Nullable public TdApi.Sticker sticker
      A sticker to be shown in the message; may be null if unknown.
    • CONSTRUCTOR

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

    • MessageGiftedStars

      public MessageGiftedStars()
      Telegram Stars were gifted to a user.
    • MessageGiftedStars

      public MessageGiftedStars(long gifterUserId, long receiverUserId, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, long starCount, String transactionId, TdApi.Sticker sticker)
      Telegram Stars were gifted to a user.
      Parameters:
      gifterUserId - The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.
      receiverUserId - The identifier of a user who received Telegram Stars; 0 if the gift is incoming.
      currency - Currency for the paid amount.
      amount - The paid amount, in the smallest units of the currency.
      cryptocurrency - Cryptocurrency used to pay for the gift; may be empty if none.
      cryptocurrencyAmount - The paid amount, in the smallest units of the cryptocurrency; 0 if none.
      starCount - Number of Telegram Stars that were gifted.
      transactionId - Identifier of the transaction for Telegram Stars purchase; for receiver only.
      sticker - A sticker to be shown in the message; may be null if unknown.
  • 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.MessageContent
      Returns:
      this.CONSTRUCTOR