Class: TD::Types::PremiumGiveawayInfo::Ongoing

Inherits:
TD::Types::PremiumGiveawayInfo show all
Defined in:
lib/tdlib/types/premium_giveaway_info/ongoing.rb

Overview

Describes an ongoing giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#creation_dateInteger

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

Returns:

  • (Integer)

    the current value of creation_date



7
8
9
# File 'lib/tdlib/types/premium_giveaway_info/ongoing.rb', line 7

def creation_date
  @creation_date
end

#is_endedBoolean

True, if the giveaway has ended and results are being prepared.

Returns:

  • (Boolean)

    the current value of is_ended



7
8
9
# File 'lib/tdlib/types/premium_giveaway_info/ongoing.rb', line 7

def is_ended
  @is_ended
end

#statusTD::Types::PremiumGiveawayParticipantStatus

Status of the current user in the giveaway.

Returns:



7
8
9
# File 'lib/tdlib/types/premium_giveaway_info/ongoing.rb', line 7

def status
  @status
end