Package org.drinkless.tdlib
Class TdApi.StarSubscription
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarSubscription
- Enclosing class:
- TdApi
Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat that is subscribed.static final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the subscription will expire or expired.Unique identifier of the subscription.boolean
True, if the subscription was canceled.boolean
True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it.The subscription plan.Type of the subscription. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.StarSubscription
(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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
Unique identifier of the subscription. -
chatId
public long chatIdIdentifier of the chat that is subscribed. -
expirationDate
public int expirationDatePoint in time (Unix timestamp) when the subscription will expire or expired. -
isCanceled
public boolean isCanceledTrue, if the subscription was canceled. -
isExpiring
public boolean isExpiringTrue, 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarSubscription
public StarSubscription()Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars. -
StarSubscription
public StarSubscription(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.- Parameters:
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.
-
-
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
-