struct

Telegram::StarTransaction

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: StarTransaction 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.

Constructors

new(id : String, amount : Int64, date : Int64, nanostar_amount : Int64 | Nil = nil, source : TransactionPartner | Nil = nil, receiver : TransactionPartner | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount
clone
Source
copy_with(id _id = @id, amount _amount = @amount, date _date = @date, nanostar_amount _nanostar_amount = @nanostar_amount, source _source = @source, receiver _receiver = @receiver)
Source
date
id
nanostar_amount
receiver
source