class Tourmaline::GiveawayWinners

Overview

This object represents a message about the completion of a giveaway with public winners.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(chat : Tourmaline::Chat, giveaway_message_id : Int32 | Int64, winners_selection_date : Time, winner_count : Int32 | Int64, winners : Array(Tourmaline::User) = [] of Tourmaline::User, additional_chat_count : Int32 | Int64 | Nil = nil, premium_subscription_month_count : Int32 | Int64 | Nil = nil, unclaimed_prize_count : Int32 | Int64 | Nil = nil, only_new_members : Bool | Nil = nil, was_refunded : Bool | Nil = nil, prize_description : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def additional_chat_count : Int32 | Int64 | Nil #

Optional. The number of other chats the user had to join in order to be eligible for the giveaway


[View source]
def additional_chat_count=(additional_chat_count : Int32 | Int64 | Nil) #

Optional. The number of other chats the user had to join in order to be eligible for the giveaway


[View source]
def chat : Tourmaline::Chat #

The chat that created the giveaway


[View source]
def chat=(chat : Tourmaline::Chat) #

The chat that created the giveaway


[View source]
def giveaway_message_id : Int32 | Int64 #

Identifier of the messsage with the giveaway in the chat


[View source]
def giveaway_message_id=(giveaway_message_id : Int32 | Int64) #

Identifier of the messsage with the giveaway in the chat


[View source]
def only_new_members=(only_new_members : Bool | Nil) #

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win


[View source]
def only_new_members? : Bool | Nil #

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win


[View source]
def premium_subscription_month_count : Int32 | Int64 | Nil #

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for


[View source]
def premium_subscription_month_count=(premium_subscription_month_count : Int32 | Int64 | Nil) #

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for


[View source]
def prize_description : String | Nil #

Optional. Description of additional giveaway prize


[View source]
def prize_description=(prize_description : String | Nil) #

Optional. Description of additional giveaway prize


[View source]
def unclaimed_prize_count : Int32 | Int64 | Nil #

Optional. Number of undistributed prizes


[View source]
def unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil) #

Optional. Number of undistributed prizes


[View source]
def was_refunded=(was_refunded : Bool | Nil) #

Optional. True, if the giveaway was canceled because the payment for it was refunded


[View source]
def was_refunded? : Bool | Nil #

Optional. True, if the giveaway was canceled because the payment for it was refunded


[View source]
def winner_count : Int32 | Int64 #

Total number of winners in the giveaway


[View source]
def winner_count=(winner_count : Int32 | Int64) #

Total number of winners in the giveaway


[View source]
def winners : Array(Tourmaline::User) #

List of up to 100 winners of the giveaway


[View source]
def winners=(winners : Array(Tourmaline::User)) #

List of up to 100 winners of the giveaway


[View source]
def winners_selection_date : Time #

[View source]
def winners_selection_date=(winners_selection_date : Time) #

[View source]