Class: TD::Types::TelegramPaymentPurpose::PremiumGiveaway
- Inherits:
-
TD::Types::TelegramPaymentPurpose
- Object
- Dry::Struct
- Base
- TD::Types::TelegramPaymentPurpose
- TD::Types::TelegramPaymentPurpose::PremiumGiveaway
- Defined in:
- lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb
Overview
The user creating a Telegram Premium giveaway.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
Paid amount, in the smallest units of the currency.
-
#currency ⇒ TD::Types::String
ISO 4217 currency code of the payment currency.
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active for the users.
-
#parameters ⇒ TD::Types::PremiumGiveawayParameters
Giveaway parameters.
-
#winner_count ⇒ Integer
Number of users which will be able to activate the gift codes.
Method Summary
Methods inherited from Base
Instance Attribute Details
#amount ⇒ Integer
Paid amount, in the smallest units of the currency.
9 10 11 |
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9 def amount @amount end |
#currency ⇒ TD::Types::String
ISO 4217 currency code of the payment currency.
9 10 11 |
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9 def currency @currency end |
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active for the users.
9 10 11 |
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9 def month_count @month_count end |
#parameters ⇒ TD::Types::PremiumGiveawayParameters
Giveaway parameters.
9 10 11 |
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9 def parameters @parameters end |
#winner_count ⇒ Integer
Number of users which will be able to activate the gift codes.
9 10 11 |
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9 def winner_count @winner_count end |