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 int
Identifier uniquely determining type of the object.boolean
Pass true to cancel the subscription; pass false to allow the user to enable it.Telegram payment identifier of the subscription.long
User 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 TypeMethodDescriptionint
Returns 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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-