class Hamilton::Types::GiveawayCompleted

Overview

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

Included Modules

Defined in:

types/giveaway_completed.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 giveaway_message : Hamilton::Types::Message | Nil #

Message with the giveaway that was completed, if it wasn't deleted.


def giveaway_message=(giveaway_message : Hamilton::Types::Message | Nil) #

Message with the giveaway that was completed, if it wasn't deleted.


def is_star_giveaway : Bool | Nil #

True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.


def is_star_giveaway=(is_star_giveaway : Bool | Nil) #

True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.


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 unclaimed_prize_count : Int32 | Nil #

Number of undistributed prizes.


def unclaimed_prize_count=(unclaimed_prize_count : Int32 | Nil) #

Number of undistributed prizes.


def winner_count : Int32 #

Number of winners in the giveaway.


def winner_count=(winner_count : Int32) #

Number of winners in the giveaway.