public static class TdApi.StarSubscription extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat that is subscribed.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
expirationDate
Point in time (Unix timestamp) when the subscription will expire or expired.
|
java.lang.String |
id
Unique identifier of the subscription.
|
boolean |
isCanceled
True, if the subscription was canceled.
|
boolean |
isExpiring
True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it.
|
TdApi.StarSubscriptionPricing |
pricing
The subscription plan.
|
TdApi.StarSubscriptionType |
type
Type of the subscription.
|
| Constructor and Description |
|---|
StarSubscription()
Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.
|
StarSubscription(java.lang.String id,
long chatId,
int expirationDate,
boolean isCanceled,
boolean isExpiring,
TdApi.StarSubscriptionPricing pricing,
TdApi.StarSubscriptionType type)
Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String id
public long chatId
public int expirationDate
public boolean isCanceled
public boolean isExpiring
public TdApi.StarSubscriptionPricing pricing
public TdApi.StarSubscriptionType type
public static final int CONSTRUCTOR
public StarSubscription()
public StarSubscription(java.lang.String id,
long chatId,
int expirationDate,
boolean isCanceled,
boolean isExpiring,
TdApi.StarSubscriptionPricing pricing,
TdApi.StarSubscriptionType type)
id - Unique identifier of the subscription.chatId - Identifier of the chat that is subscribed.expirationDate - Point in time (Unix timestamp) when the subscription will expire or expired.isCanceled - True, if the subscription was canceled.isExpiring - True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it.pricing - The subscription plan.type - Type of the subscription.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object