class Hamilton::Types::GiveawayWinners

Overview

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

Included Modules

Defined in:

types/giveaway_winners.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def additional_chat_count : Int32 | Nil #

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


def 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.


The chat that created the giveaway.


def chat=(chat : Hamilton::Types::Chat) #

The chat that created the giveaway.


def giveaway_message_id : Int32 #

Identifier of the message with the giveaway in the chat.


def giveaway_message_id=(giveaway_message_id : Int32) #

Identifier of the message with the giveaway in the chat.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def only_new_members : Bool | Nil #

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


def 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.


def 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.


def 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.


def prize_description : String | Nil #

Description of additional giveaway prize.


def prize_description=(prize_description : String | Nil) #

Description of additional giveaway prize.


def prize_star_count : Int32 | Nil #

The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.


def prize_star_count=(prize_star_count : Int32 | Nil) #

The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only.


def unclaimed_prize_count : Int32 | Nil #

Number of undistributed prizes.


def unclaimed_prize_count=(unclaimed_prize_count : Int32 | Nil) #

Number of undistributed prizes.


def was_refunded : Bool | Nil #

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


def was_refunded=(was_refunded : Bool | Nil) #

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


def winner_count : Int32 #

Total number of winners in the giveaway.


def winner_count=(winner_count : Int32) #

Total number of winners in the giveaway.


def winners : Array(Hamilton::Types::User) #

List of up to 100 winners of the giveaway.


def winners=(winners : Array(Hamilton::Types::User)) #

List of up to 100 winners of the giveaway.


def winners_selection_date : Int32 #

Point in time (Unix timestamp) when winners of the giveaway were selected.


def winners_selection_date=(winners_selection_date : Int32) #

Point in time (Unix timestamp) when winners of the giveaway were selected.