Class: TD::Types::StarSubscriptions

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

Overview

Represents a list of Telegram Star subscriptions.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#next_offsetTD::Types::String

The offset for the next request. If empty, then there are no more results.

Returns:

  • (TD::Types::String)

    the current value of next_offset



10
11
12
# File 'lib/tdlib/types/star_subscriptions.rb', line 10

def next_offset
  @next_offset
end

#required_star_countInteger

The number of Telegram Stars required to buy to extend subscriptions expiring soon.

Returns:

  • (Integer)

    the current value of required_star_count



10
11
12
# File 'lib/tdlib/types/star_subscriptions.rb', line 10

def required_star_count
  @required_star_count
end

#star_countInteger

The amount of owned Telegram Stars.

Returns:

  • (Integer)

    the current value of star_count



10
11
12
# File 'lib/tdlib/types/star_subscriptions.rb', line 10

def star_count
  @star_count
end

#subscriptionsArray<TD::Types::StarSubscription>

List of subbscriptions for Telegram Stars.

Returns:



10
11
12
# File 'lib/tdlib/types/star_subscriptions.rb', line 10

def subscriptions
  @subscriptions
end