Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeBotPaidMediaSale
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeBotPaidMediaSale
- Enclosing class:
- TdApi
The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInformation about the affiliate which received commission from the transaction; may be null if none.static final int
Identifier uniquely determining type of the object.The bought media.Bot-provided payload.long
Identifier of the user that bought the media. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.StarTransactionTypeBotPaidMediaSale
(long userId, TdApi.PaidMedia[] media, String payload, TdApi.AffiliateInfo affiliate) The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only. -
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
-
userId
public long userIdIdentifier of the user that bought the media. -
media
The bought media. -
payload
Bot-provided payload. -
affiliate
Information about the affiliate which received commission from the transaction; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeBotPaidMediaSale
public StarTransactionTypeBotPaidMediaSale()The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only. -
StarTransactionTypeBotPaidMediaSale
public StarTransactionTypeBotPaidMediaSale(long userId, TdApi.PaidMedia[] media, String payload, TdApi.AffiliateInfo affiliate) The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.- Parameters:
userId
- Identifier of the user that bought the media.media
- The bought media.payload
- Bot-provided payload.affiliate
- Information about the affiliate which received commission from the transaction; may be null if none.
-
-
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
-