struct

Telegram::Giveaway

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: Giveaway This object represents a message about a scheduled giveaway.

Constructors

new(chats : Array(Chat), winners_selection_date : Int64, winner_count : Int64, only_new_members : Bool | Nil = nil, has_public_winners : Bool | Nil = nil, prize_description : String | Nil = nil, country_codes : Array(String) | Nil = nil, prize_star_count : Int64 | Nil = nil, premium_subscription_month_count : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

chats
clone
Source
copy_with(chats _chats = @chats, winners_selection_date _winners_selection_date = @winners_selection_date, winner_count _winner_count = @winner_count, only_new_members _only_new_members = @only_new_members, has_public_winners _has_public_winners = @has_public_winners, prize_description _prize_description = @prize_description, country_codes _country_codes = @country_codes, prize_star_count _prize_star_count = @prize_star_count, premium_subscription_month_count _premium_subscription_month_count = @premium_subscription_month_count)
Source
country_codes
has_public_winners
only_new_members
premium_subscription_month_count
prize_description
prize_star_count
winner_count
winners_selection_date