java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.TelegramPaymentPurpose
it.tdlight.jni.TdApi.TelegramPaymentPurposePremiumGiveaway
- Enclosing class:
- TdApi
public static final class TdApi.TelegramPaymentPurposePremiumGiveaway
extends TdApi.TelegramPaymentPurpose
The user creating a Telegram Premium giveaway for subscribers of
channel chats; requires canPostMessages rights in the channels.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Paid amount, in the smallest units of the currency.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.int
Number of month the Telegram Premium subscription will be active for the users.Giveaway parameters.int
Number of users which will be able to activate the gift codes. -
Constructor Summary
ConstructorDescriptionThe user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels.TelegramPaymentPurposePremiumGiveaway
(TdApi.PremiumGiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount) The user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels.The user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
parameters
Giveaway parameters. -
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
winnerCount
public int winnerCountNumber of users which will be able to activate the gift codes. -
monthCount
public int monthCountNumber of month the Telegram Premium subscription will be active for the users. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TelegramPaymentPurposePremiumGiveaway
public TelegramPaymentPurposePremiumGiveaway()The user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels. -
TelegramPaymentPurposePremiumGiveaway
public TelegramPaymentPurposePremiumGiveaway(TdApi.PremiumGiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount) The user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels.- Parameters:
parameters
- Giveaway parameters.currency
- ISO 4217 currency code of the payment currency.amount
- Paid amount, in the smallest units of the currency.winnerCount
- Number of users which will be able to activate the gift codes.monthCount
- Number of month the Telegram Premium subscription will be active for the users.
-
TelegramPaymentPurposePremiumGiveaway
The user creating a Telegram Premium giveaway for subscribers of channel chats; requires canPostMessages rights in the channels.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-