Class: TD::Types::StarSubscription
- Defined in:
- lib/tdlib/types/star_subscription.rb
Overview
Contains information about subscription to a channel chat paid in Telegram Stars.
Instance Attribute Summary collapse
-
#can_reuse ⇒ Boolean
True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat again.
-
#chat_id ⇒ Integer
Identifier of the channel chat that is subscribed.
-
#expiration_date ⇒ Integer
Point in time (Unix timestamp) when the subscription will expire or expired.
-
#id ⇒ TD::Types::String
Unique identifier of the subscription.
-
#invite_link ⇒ TD::Types::String?
The invite link that can be used to renew the subscription if it has been expired; may be empty, if the link isn’t available anymore.
-
#is_canceled ⇒ Boolean
True, if the subscription was canceled.
-
#is_expiring ⇒ Boolean
True, if the subscription expires soon and there are no enough Telegram Stars on the user’s balance to extend it.
-
#pricing ⇒ TD::Types::StarSubscriptionPricing
The subscription plan.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_reuse ⇒ Boolean
True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat again.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def can_reuse @can_reuse end |
#chat_id ⇒ Integer
Identifier of the channel chat that is subscribed.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def chat_id @chat_id end |
#expiration_date ⇒ Integer
Point in time (Unix timestamp) when the subscription will expire or expired.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def expiration_date @expiration_date end |
#id ⇒ TD::Types::String
Unique identifier of the subscription.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def id @id end |
#invite_link ⇒ TD::Types::String?
The invite link that can be used to renew the subscription if it has been expired; may be empty, if the link isn’t available anymore.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def invite_link @invite_link end |
#is_canceled ⇒ Boolean
True, if the subscription was canceled.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def is_canceled @is_canceled end |
#is_expiring ⇒ Boolean
True, if the subscription expires soon and there are no enough Telegram Stars on the user’s balance to extend it.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def is_expiring @is_expiring end |
#pricing ⇒ TD::Types::StarSubscriptionPricing
The subscription plan.
15 16 17 |
# File 'lib/tdlib/types/star_subscription.rb', line 15 def pricing @pricing end |