Class: TD::Types::MessageContent::PremiumGiveawayWinners
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::PremiumGiveawayWinners
- 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
-
#actual_winners_selection_date ⇒ Integer
Point in time (Unix timestamp) when the winners were selected.
-
#additional_chat_count ⇒ Integer
Number of other chats that participated in the giveaway.
-
#boosted_chat_id ⇒ Integer
Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription.
-
#giveaway_message_id ⇒ Integer
Identifier of the message with the giveaway in the boosted chat.
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation.
-
#only_new_members ⇒ Boolean
True, if only new members of the chats were eligible for the giveaway.
-
#prize_description ⇒ TD::Types::String
Additional description of the giveaway prize.
-
#unclaimed_prize_count ⇒ Integer
Number of undistributed prizes.
-
#was_refunded ⇒ Boolean
True, if the giveaway was canceled and was fully refunded.
-
#winner_count ⇒ Integer
Total number of winners in the giveaway.
-
#winner_user_ids ⇒ Array<Integer>
Up to 100 user identifiers of the winners of the giveaway.
Method Summary
Methods inherited from Base
Instance Attribute Details
#actual_winners_selection_date ⇒ Integer
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.
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_count ⇒ Integer
Number of other chats that participated in the giveaway.
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_id ⇒ Integer
Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription.
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_id ⇒ Integer
Identifier of the message with the giveaway in the boosted chat.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def @giveaway_message_id end |
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def month_count @month_count end |
#only_new_members ⇒ Boolean
True, if only new members of the chats were eligible for the giveaway.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def only_new_members @only_new_members end |
#prize_description ⇒ TD::Types::String
Additional description of the giveaway prize.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def prize_description @prize_description end |
#unclaimed_prize_count ⇒ Integer
Number of undistributed prizes.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def unclaimed_prize_count @unclaimed_prize_count end |
#was_refunded ⇒ Boolean
True, if the giveaway was canceled and was fully refunded.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def was_refunded @was_refunded end |
#winner_count ⇒ Integer
Total number of winners in the giveaway.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def winner_count @winner_count end |
#winner_user_ids ⇒ Array<Integer>
Up to 100 user identifiers of the winners of the giveaway.
18 19 20 |
# File 'lib/tdlib/types/message_content/premium_giveaway_winners.rb', line 18 def winner_user_ids @winner_user_ids end |