Package org.drinkless.tdlib
Class TdApi.StarTransactionTypeChannelPaidMediaPurchase
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarTransactionType
org.drinkless.tdlib.TdApi.StarTransactionTypeChannelPaidMediaPurchase
- Enclosing class:
- TdApi
public static class TdApi.StarTransactionTypeChannelPaidMediaPurchase
extends TdApi.StarTransactionType
The transaction is a purchase of paid media from a channel by the current user; for regular users only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the channel chat that sent the paid media.static final int
Identifier uniquely determining type of the object.The bought media if the transaction wasn't refunded.long
Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message. -
Constructor Summary
ConstructorsConstructorDescriptionThe transaction is a purchase of paid media from a channel by the current user; for regular users only.StarTransactionTypeChannelPaidMediaPurchase
(long chatId, long messageId, TdApi.PaidMedia[] media) The transaction is a purchase of paid media from a channel by the current user; for regular users 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
-
chatId
public long chatIdIdentifier of the channel chat that sent the paid media. -
messageId
public long messageIdIdentifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message. -
media
The bought media if the transaction wasn't refunded. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarTransactionTypeChannelPaidMediaPurchase
public StarTransactionTypeChannelPaidMediaPurchase()The transaction is a purchase of paid media from a channel by the current user; for regular users only. -
StarTransactionTypeChannelPaidMediaPurchase
public StarTransactionTypeChannelPaidMediaPurchase(long chatId, long messageId, TdApi.PaidMedia[] media) The transaction is a purchase of paid media from a channel by the current user; for regular users only.- Parameters:
chatId
- Identifier of the channel chat that sent the paid media.messageId
- Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message.media
- The bought media if the transaction wasn't refunded.
-
-
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
-