Class: TD::Types::MessageContent::PremiumGiveawayWinners

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

Overview

A Telegram Premium giveaway with 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

#actual_winners_selection_dateInteger

Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.

Returns:

  • (Integer)

    the current value of actual_winners_selection_date



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def actual_winners_selection_date
  @actual_winners_selection_date
end

#additional_chat_countInteger

Number of other chats that participated in the giveaway.

Returns:

  • (Integer)

    the current value of additional_chat_count



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def additional_chat_count
  @additional_chat_count
end

#boosted_chat_idInteger

Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription.

Returns:

  • (Integer)

    the current value of boosted_chat_id



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def boosted_chat_id
  @boosted_chat_id
end

#giveaway_message_idInteger

Identifier of the message with the giveaway in the boosted chat.

Returns:

  • (Integer)

    the current value of giveaway_message_id



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def giveaway_message_id
  @giveaway_message_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



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def month_count
  @month_count
end

#only_new_membersBoolean

True, if only new members of the chats were eligible for the giveaway.

Returns:

  • (Boolean)

    the current value of only_new_members



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def only_new_members
  @only_new_members
end

#prize_descriptionTD::Types::String

Additional description of the giveaway prize.

Returns:

  • (TD::Types::String)

    the current value of prize_description



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def prize_description
  @prize_description
end

#unclaimed_prize_countInteger

Number of undistributed prizes.

Returns:

  • (Integer)

    the current value of unclaimed_prize_count



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def unclaimed_prize_count
  @unclaimed_prize_count
end

#was_refundedBoolean

True, if the giveaway was canceled and was fully refunded.

Returns:

  • (Boolean)

    the current value of was_refunded



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def was_refunded
  @was_refunded
end

#winner_countInteger

Total number of winners in the giveaway.

Returns:

  • (Integer)

    the current value of winner_count



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def winner_count
  @winner_count
end

#winner_user_idsArray<Integer>

Up to 100 user identifiers of the winners of the giveaway.

Returns:

  • (Array<Integer>)

    the current value of winner_user_ids



18
19
20
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18

def winner_user_ids
  @winner_user_ids
end