Class: TD::Types::StorePaymentPurpose::Stars

Inherits:
TD::Types::StorePaymentPurpose show all
Defined in:
lib/tdlib/types/store_payment_purpose/stars.rb

Overview

The user buying Telegram Stars.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

Paid amount, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/stars.rb', line 7

def amount
  @amount
end

#currencyTD::Types::String

ISO 4217 currency code of the payment currency.

Returns:

  • (TD::Types::String)

    the current value of currency



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/stars.rb', line 7

def currency
  @currency
end

#star_countInteger

Number of bought Telegram Stars.

Returns:

  • (Integer)

    the current value of star_count



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/stars.rb', line 7

def star_count
  @star_count
end