Class StarTransaction

java.lang.Object
io.github.natanimn.telebof.types.payments.StarTransaction

public class StarTransaction extends Object
Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment provider from whom they acquired Stars (e.g., Apple, Google) following this transaction, the refunded Stars will be deducted from the bot's balance. This is outside of Telegram's control.
Since:
March 3, 2025
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Integer amount of Telegram Stars transferred by the transaction
    Date the transaction was created in Unix time
    Unique identifier of the transaction.
    The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
    Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal).
    Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
     
    int
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      public String id
      Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.
    • amount

      public Integer amount
      Integer amount of Telegram Stars transferred by the transaction
    • date

      public Integer date
      Date the transaction was created in Unix time
    • source

      public TransactionPartner source
      Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions
    • receiver

      public TransactionPartner receiver
      Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
    • nanostar_amount

      public Integer nanostar_amount
      The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
  • Constructor Details

    • StarTransaction

      public StarTransaction()
  • Method Details