GiveawayParameters
Object Hierarchy:
Description:
public class GiveawayParameters :
Error
Describes parameters of a giveaway
Content:
Properties:
- public ArrayList<int64?> additional_chat_ids { get; set construct; }
Identifiers of other supergroup or channel chats that must be
subscribed by the users to be eligible for the giveaway. There can be up to getOption("giveaway_additional_chat_count_max") additional
chats
- public int64 boosted_chat_id { get; set construct; }
Identifier of the supergroup or channel chat, which will be
automatically boosted by the winners of the giveaway for duration of the Telegram Premium subscription, or for the specified time. If
the chat is a channel, then can_post_messages right is required in the channel, otherwise, the user must be an administrator in the
supergroup
- public ArrayList<string?> country_codes { get; set construct; }
The list of two-letter ISO 3166-1 alpha-2 codes of countries, users
from which will be eligible for the giveaway. If empty, then all users can participate in the giveaway. There can be up to
getOption("giveaway_country_count_max") chosen countries. Users with phone number that was bought at
https://fragment.com can participate in any giveaway and the country code "FT" must
not be specified in the list
- public bool has_public_winners { get; set construct; }
True, if the list of winners of the giveaway will be available to
everyone
- public bool only_new_members { get; set construct; }
True, if only new members of the chats will be eligible for the
giveaway
- public string prize_description { get; set construct; }
Additional description of the giveaway prize; 0-128 characters
- public int32 winners_selection_date { get; set construct; }
Point in time (Unix timestamp) when the giveaway is expected to be
performed; must be 60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways
Creation methods:
- public GiveawayParameters (int64 boosted_chat_id, ArrayList<int64?> additional_chat_ids, int32 winners_selection_date, bool only_new_members, bool has_public_winners, ArrayList<string?> country_codes, string prize_description)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref