Class: TD::Types::MessageContent::PremiumGiveawayCompleted

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/premium_giveaway_completed.rb

Overview

A Telegram Premium giveaway without public winners has been completed for the chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#giveaway_message_idInteger

Identifier of the message with the giveaway; can be 0 if the message was deleted.

Returns:

  • (Integer)

    the current value of giveaway_message_id



8
9
10
# File 'lib/tdlib/types/message_content/premium_giveaway_completed.rb', line 8

def giveaway_message_id
  @giveaway_message_id
end

#unclaimed_prize_countInteger

Number of undistributed prizes.

Returns:

  • (Integer)

    the current value of unclaimed_prize_count



8
9
10
# File 'lib/tdlib/types/message_content/premium_giveaway_completed.rb', line 8

def unclaimed_prize_count
  @unclaimed_prize_count
end

#winner_countInteger

Number of winners in the giveaway.

Returns:

  • (Integer)

    the current value of winner_count



8
9
10
# File 'lib/tdlib/types/message_content/premium_giveaway_completed.rb', line 8

def winner_count
  @winner_count
end