Class: TD::Types::PrepaidPremiumGiveaway

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

Overview

Describes a prepaid Telegram Premium giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idInteger

Unique identifier of the prepaid giveaway.

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#month_countInteger

Number of months the Telegram Premium subscription will be active after code activation.

Returns:

  • (Integer)

    the current value of month_count



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

def month_count
  @month_count
end

#payment_dateInteger

Point in time (Unix timestamp) when the giveaway was paid.

Returns:

  • (Integer)

    the current value of payment_date



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

def payment_date
  @payment_date
end

#winner_countInteger

Number of users which will receive Telegram Premium subscription gift codes.

Returns:

  • (Integer)

    the current value of winner_count



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

def winner_count
  @winner_count
end