Package org.drinkless.tdlib
Class TdApi.MessageGiftedTon
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageGiftedTon
- Enclosing class:
- TdApi
Toncoins were gifted to a user.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long
The identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing.long
The identifier of a user that received Toncoins; 0 if the gift is incoming.A sticker to be shown in the message; may be null if unknown.long
The received amount of Toncoins, in the smallest units of the cryptocurrency.Identifier of the transaction for Toncoin credit; for receiver only. -
Constructor Summary
ConstructorsConstructorDescriptionToncoins were gifted to a user.MessageGiftedTon
(long gifterUserId, long receiverUserId, long tonAmount, String transactionId, TdApi.Sticker sticker) Toncoins were gifted to a user. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
gifterUserId
public long gifterUserIdThe identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing. -
receiverUserId
public long receiverUserIdThe identifier of a user that received Toncoins; 0 if the gift is incoming. -
tonAmount
public long tonAmountThe received amount of Toncoins, in the smallest units of the cryptocurrency. -
transactionId
Identifier of the transaction for Toncoin credit; for receiver only. -
sticker
A sticker to be shown in the message; may be null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageGiftedTon
public MessageGiftedTon()Toncoins were gifted to a user. -
MessageGiftedTon
public MessageGiftedTon(long gifterUserId, long receiverUserId, long tonAmount, String transactionId, TdApi.Sticker sticker) Toncoins were gifted to a user.- Parameters:
gifterUserId
- The identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing.receiverUserId
- The identifier of a user that received Toncoins; 0 if the gift is incoming.tonAmount
- The received amount of Toncoins, in the smallest units of the cryptocurrency.transactionId
- Identifier of the transaction for Toncoin credit; for receiver only.sticker
- A sticker to be shown in the message; may be null if unknown.
-
-
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
-