Raw.StarsSubscriptionPricing

Raw.StarsSubscriptionPricing

Pricing of a telegram star subscription.

starsSubscriptionPricing#5416d58 period:int amount:long = StarsSubscriptionPricing;
export namespace Raw {
  export class StarsSubscriptionPricing {
    constructor(params: { period: number; amount: bigint }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0x5416d58

Property

  • period : number

    The user should pay amount stars every period seconds to gain and maintain access to the channel. currently the only allowed subscription period is 302460*60, i.e. the user will be debited amount stars every month.

  • amount : bigint

    Price of the subscription in telegram stars.