class
Hamilton::Types::Giveaway
- Hamilton::Types::Giveaway
- Reference
- Object
Overview
This object represents a message about a scheduled giveaway.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/giveaway.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#chats : Array(Hamilton::Types::Chat)
The list of chats which the user must join to participate in the giveaway.
-
#chats=(chats : Array(Hamilton::Types::Chat))
The list of chats which the user must join to participate in the giveaway.
-
#country_codes : Array(String) | Nil
A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come.
-
#country_codes=(country_codes : Array(String) | Nil)
A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come.
-
#has_public_winners : Bool | Nil
True, if the list of giveaway winners will be visible to everyone.
-
#has_public_winners=(has_public_winners : Bool | Nil)
True, if the list of giveaway winners will be visible to everyone.
-
#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 join the chats after the giveaway started should be eligible to win.
-
#only_new_members=(only_new_members : Bool | Nil)
True, if only users who join the chats after the giveaway started should be 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 to be split between giveaway winners; for Telegram Star giveaways only.
-
#prize_star_count=(prize_star_count : Int32 | Nil)
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
-
#winner_count : Int32
The number of users which are supposed to be selected as winners of the giveaway.
-
#winner_count=(winner_count : Int32)
The number of users which are supposed to be selected as winners of the giveaway.
-
#winners_selection_date : Int32
Point in time (Unix timestamp) when winners of the giveaway will be selected.
-
#winners_selection_date=(winners_selection_date : Int32)
Point in time (Unix timestamp) when winners of the giveaway will be 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 list of chats which the user must join to participate in the giveaway.
The list of chats which the user must join to participate in the giveaway.
A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.
A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.
True, if the list of giveaway winners will be visible to everyone.
True, if the list of giveaway winners will be visible to everyone.
True, if only users who join the chats after the giveaway started should be eligible to win.
True, if only users who join the chats after the giveaway started should be eligible to win.
Description of additional giveaway prize.
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
The number of users which are supposed to be selected as winners of the giveaway.
The number of users which are supposed to be selected as winners of the giveaway.
Point in time (Unix timestamp) when winners of the giveaway will be selected.
Point in time (Unix timestamp) when winners of the giveaway will be selected.