class
Hamilton::Types::GiveawayWinners
- Hamilton::Types::GiveawayWinners
- Reference
- Object
Overview
This object represents a message about the completion of a giveaway with public winners.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/giveaway_winners.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#additional_chat_count : Int32 | Nil
The number of other chats the user had to join in order to be eligible for the giveaway.
-
#additional_chat_count=(additional_chat_count : Int32 | Nil)
The number of other chats the user had to join in order to be eligible for the giveaway.
-
#chat : Hamilton::Types::Chat
The chat that created the giveaway.
-
#chat=(chat : Hamilton::Types::Chat)
The chat that created the giveaway.
-
#giveaway_message_id : Int32
Identifier of the message with the giveaway in the chat.
-
#giveaway_message_id=(giveaway_message_id : Int32)
Identifier of the message with the giveaway in the chat.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#only_new_members : Bool | Nil
True, if only users who had joined the chats after the giveaway started were eligible to win.
-
#only_new_members=(only_new_members : Bool | Nil)
True, if only users who had joined the chats after the giveaway started were eligible to win.
-
#premium_subscription_month_count : Int32 | Nil
The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only.
-
#premium_subscription_month_count=(premium_subscription_month_count : Int32 | Nil)
The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only.
-
#prize_description : String | Nil
Description of additional giveaway prize.
-
#prize_description=(prize_description : String | Nil)
Description of additional giveaway prize.
-
#prize_star_count : Int32 | Nil
The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.
-
#prize_star_count=(prize_star_count : Int32 | Nil)
The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.
-
#unclaimed_prize_count : Int32 | Nil
Number of undistributed prizes.
-
#unclaimed_prize_count=(unclaimed_prize_count : Int32 | Nil)
Number of undistributed prizes.
-
#was_refunded : Bool | Nil
True, if the giveaway was canceled because the payment for it was refunded.
-
#was_refunded=(was_refunded : Bool | Nil)
True, if the giveaway was canceled because the payment for it was refunded.
-
#winner_count : Int32
Total number of winners in the giveaway.
-
#winner_count=(winner_count : Int32)
Total number of winners in the giveaway.
-
#winners : Array(Hamilton::Types::User)
List of up to 100 winners of the giveaway.
-
#winners=(winners : Array(Hamilton::Types::User))
List of up to 100 winners of the giveaway.
-
#winners_selection_date : Int32
Point in time (Unix timestamp) when winners of the giveaway were selected.
-
#winners_selection_date=(winners_selection_date : Int32)
Point in time (Unix timestamp) when winners of the giveaway were selected.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The number of other chats the user had to join in order to be eligible for the giveaway.
The number of other chats the user had to join in order to be eligible for the giveaway.
Identifier of the message with the giveaway in the chat.
True, if only users who had joined the chats after the giveaway started were eligible to win.
True, if only users who had joined the chats after the giveaway started were eligible to win.
Description of additional giveaway prize.
The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.
The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.
True, if the giveaway was canceled because the payment for it was refunded.
True, if the giveaway was canceled because the payment for it was refunded.
Point in time (Unix timestamp) when winners of the giveaway were selected.
Point in time (Unix timestamp) when winners of the giveaway were selected.