Class: TD::Types::PremiumState

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

Overview

Contains state of Telegram Premium subscription and promotion videos for Premium features.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationsArray<TD::Types::PremiumFeaturePromotionAnimation>

The list of available promotion animations for Premium features.

Returns:



12
13
14
# File 'lib/tdlib/types/premium_state.rb', line 12

def animations
  @animations
end

#business_animationsArray<TD::Types::BusinessFeaturePromotionAnimation>

The list of available promotion animations for Business features.

Returns:



12
13
14
# File 'lib/tdlib/types/premium_state.rb', line 12

def business_animations
  @business_animations
end

#payment_optionsArray<TD::Types::PremiumStatePaymentOption>

The list of available options for buying Telegram Premium.

Returns:



12
13
14
# File 'lib/tdlib/types/premium_state.rb', line 12

def payment_options
  @payment_options
end

#stateTD::Types::FormattedText?

Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription.

Returns:



12
13
14
# File 'lib/tdlib/types/premium_state.rb', line 12

def state
  @state
end