Class: TD::Types::StarSubscriptionPricing

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/star_subscription_pricing.rb

Overview

Describes subscription plan paid in Telegram Stars.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#periodInteger

The number of seconds between consecutive Telegram Star debiting.

Returns:

  • (Integer)

    the current value of period



6
7
8
# File 'lib/tdlib/types/star_subscription_pricing.rb', line 6

def period
  @period
end

#star_countInteger

The amount of Telegram Stars that must be paid for each period.

Returns:

  • (Integer)

    the current value of star_count



6
7
8
# File 'lib/tdlib/types/star_subscription_pricing.rb', line 6

def star_count
  @star_count
end