public static class TdApi.GiveawayParameters extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long[] |
additionalChatIds
Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway.
|
long |
boostedChatId
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.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String[] |
countryCodes
The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be eligible for the giveaway.
|
boolean |
hasPublicWinners
True, if the list of winners of the giveaway will be available to everyone.
|
boolean |
onlyNewMembers
True, if only new members of the chats will be eligible for the giveaway.
|
java.lang.String |
prizeDescription
Additional description of the giveaway prize; 0-128 characters.
|
int |
winnersSelectionDate
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.
|
| Constructor and Description |
|---|
GiveawayParameters()
Describes parameters of a giveaway.
|
GiveawayParameters(long boostedChatId,
long[] additionalChatIds,
int winnersSelectionDate,
boolean onlyNewMembers,
boolean hasPublicWinners,
java.lang.String[] countryCodes,
java.lang.String prizeDescription)
Describes parameters of a giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long boostedChatId
public long[] additionalChatIds
public int winnersSelectionDate
public boolean onlyNewMembers
public boolean hasPublicWinners
public java.lang.String[] countryCodes
public java.lang.String prizeDescription
public static final int CONSTRUCTOR
public GiveawayParameters()
public GiveawayParameters(long boostedChatId,
long[] additionalChatIds,
int winnersSelectionDate,
boolean onlyNewMembers,
boolean hasPublicWinners,
java.lang.String[] countryCodes,
java.lang.String prizeDescription)
boostedChatId - 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 canPostMessages right is required in the channel, otherwise, the user must be an administrator in the supergroup.additionalChatIds - 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.winnersSelectionDate - 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.onlyNewMembers - True, if only new members of the chats will be eligible for the giveaway.hasPublicWinners - True, if the list of winners of the giveaway will be available to everyone.countryCodes - 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.prizeDescription - Additional description of the giveaway prize; 0-128 characters.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object