Package org.drinkless.tdlib
Class TdApi.UpdateUserSubscription
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Update
org.drinkless.tdlib.TdApi.UpdateUserSubscription
- Enclosing class:
- TdApi
Subscription of a user to the bot was changed; for bots only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if the subscription was canceled.booleanTrue, if the payment for the subscription has failed.booleanTrue, if the subscription was restored.Bot-specified subscription invoice payload.longIdentifier of the user. -
Constructor Summary
ConstructorsConstructorDescriptionSubscription of a user to the bot was changed; for bots only.UpdateUserSubscription(long userId, String payload, boolean isCanceled, boolean isRestored, boolean isPaymentFailed) Subscription of a user to the bot was changed; for bots only. -
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 the user. -
payload
Bot-specified subscription invoice payload. -
isCanceled
public boolean isCanceledTrue, if the subscription was canceled. -
isRestored
public boolean isRestoredTrue, if the subscription was restored. -
isPaymentFailed
public boolean isPaymentFailedTrue, if the payment for the subscription has failed. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpdateUserSubscription
public UpdateUserSubscription()Subscription of a user to the bot was changed; for bots only. -
UpdateUserSubscription
public UpdateUserSubscription(long userId, String payload, boolean isCanceled, boolean isRestored, boolean isPaymentFailed) Subscription of a user to the bot was changed; for bots only.- Parameters:
userId- Identifier of the user.payload- Bot-specified subscription invoice payload.isCanceled- True, if the subscription was canceled.isRestored- True, if the subscription was restored.isPaymentFailed- True, if the payment for the subscription has failed.
-
-
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
-