public static class TdApi.EditUserStarSubscription extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isCanceled
Pass true to cancel the subscription; pass false to allow the user to enable it.
|
java.lang.String |
telegramPaymentChargeId
Telegram payment identifier of the subscription.
|
long |
userId
User identifier.
|
| Constructor and Description |
|---|
EditUserStarSubscription()
Default constructor for a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.
|
EditUserStarSubscription(long userId,
java.lang.String telegramPaymentChargeId,
boolean isCanceled)
Creates a function, which cancels or re-enables Telegram Star subscription for a user; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public java.lang.String telegramPaymentChargeId
public boolean isCanceled
public static final int CONSTRUCTOR
public EditUserStarSubscription()
Returns Ok
public EditUserStarSubscription(long userId,
java.lang.String telegramPaymentChargeId,
boolean isCanceled)
Returns Ok
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object