Package org.drinkless.tdlib
Class TdApi.EditUserStarSubscription
- Enclosing class:
- TdApi
Cancels or re-enables Telegram Star subscription for a user; for bots only.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanPass true to cancel the subscription; pass false to allow the user to enable it.Telegram payment identifier of the subscription.longUser identifier. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.EditUserStarSubscription(long userId, String telegramPaymentChargeId, boolean isCanceled) Creates a function, which cancels or re-enables Telegram Star subscription for a user; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
userId
public long userIdUser identifier. -
telegramPaymentChargeId
Telegram payment identifier of the subscription. -
isCanceled
public boolean isCanceledPass true to cancel the subscription; pass false to allow the user to enable it. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
EditUserStarSubscription
public EditUserStarSubscription()Default constructor for a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.Returns
Ok -
EditUserStarSubscription
Creates a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.Returns
Ok- Parameters:
userId- User identifier.telegramPaymentChargeId- Telegram payment identifier of the subscription.isCanceled- Pass true to cancel the subscription; pass false to allow the user to enable it.
-
-
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
-