Layer 224
StarsSubscriptionPricingObj
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 StarsSubscriptionPricingObj constructor obj := &tg.StarsSubscriptionPricingObj{ Period: 42, Amount: int64(1234567890), }