Package org.drinkless.tdlib
Class TdApi.ChatBoostSourceGiftCode
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatBoostSource
org.drinkless.tdlib.TdApi.ChatBoostSourceGiftCode
- Enclosing class:
- TdApi
The chat created a Telegram Premium gift code for a user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.longIdentifier of a user, for which the gift code was created. -
Constructor Summary
ConstructorsConstructorDescriptionThe chat created a Telegram Premium gift code for a user.ChatBoostSourceGiftCode(long userId, String giftCode) The chat created a Telegram Premium gift code for a user. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
userId
public long userIdIdentifier of a user, for which the gift code was created. -
giftCode
The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatBoostSourceGiftCode
public ChatBoostSourceGiftCode()The chat created a Telegram Premium gift code for a user. -
ChatBoostSourceGiftCode
The chat created a Telegram Premium gift code for a user.- Parameters:
userId- Identifier of a user, for which the gift code was created.giftCode- The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-