Class: TD::Types::TelegramPaymentPurpose::PremiumGiveaway

Inherits:
TD::Types::TelegramPaymentPurpose show all
Defined in:
lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb

Overview

The user creating a Telegram Premium giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

Paid amount, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of amount



9
10
11
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9

def amount
  @amount
end

#currencyTD::Types::String

ISO 4217 currency code of the payment currency.

Returns:

  • (TD::Types::String)

    the current value of currency



9
10
11
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9

def currency
  @currency
end

#month_countInteger

Number of months the Telegram Premium subscription will be active for the users.

Returns:

  • (Integer)

    the current value of month_count



9
10
11
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9

def month_count
  @month_count
end

#parametersTD::Types::PremiumGiveawayParameters

Giveaway parameters.

Returns:



9
10
11
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9

def parameters
  @parameters
end

#winner_countInteger

Number of users which will be able to activate the gift codes.

Returns:

  • (Integer)

    the current value of winner_count



9
10
11
# File 'lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb', line 9

def winner_count
  @winner_count
end