Layer 220
StarsSubscriptionPricing
Pricing of a Telegram Star subscription.
constructor
starsSubscriptionPricing#5416d58 period:int amount:long = StarsSubscriptionPricing;
Parameters
| Name | Type | Description |
|---|---|---|
| Period | int | The user should pay amount stars every period seconds to gain and maintain access to the channel. Currently the only allowed subscription period is 30*24*60*60, i. e. the user will be debited amount stars every month. |
| Amount | long | Price of the subscription in Telegram Stars. |
Returns
StarsSubscriptionPricingGogram Example
// Creating StarsSubscriptionPricing constructor obj := &tg.StarsSubscriptionPricing{ Period: 0, Amount: int64(0), }