Link Search Menu Expand Document

Constructor: starsSubscriptionPricing

Back to constructors index

Pricing of a Telegram Star subscription ».

Attributes:

NameTypeRequiredDescription
periodintYesThe 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.
amountlongYesPrice of the subscription in Telegram Stars.

Type: StarsSubscriptionPricing

Example:

$starsSubscriptionPricing = ['_' => 'starsSubscriptionPricing', 'period' => int, 'amount' => long];