Raw.StarsSubscription
Represents a telegram star subscription.
starsSubscription#2e6eab1a flags:# canceled:flags.0?true can_refulfill:flags.1?true missing_balance:flags.2?true bot_canceled:flags.7?true id:string peer:Peer until_date:int pricing:StarsSubscriptionPricing chat_invite_hash:flags.3?string title:flags.4?string photo:flags.5?WebDocument invoice_slug:flags.6?string = StarsSubscription;export namespace Raw {
export class StarsSubscription {
constructor(params: {
canceled?: boolean;
canRefulfill?: boolean;
missingBalance?: boolean;
botCanceled?: boolean;
id: string;
peer: Raw.TypePeer;
untilDate: number;
pricing: Raw.TypeStarsSubscriptionPricing;
chatInviteHash?: string;
title?: string;
photo?: Raw.TypeWebDocument;
invoiceSlug?: string;
}) {}
}
}🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 201
Constructor ID: 0x2e6eab1a
Property
canceled: boolean or undefinedWhether this subscription was cancelled.
canRefulfill: boolean or undefinedWhether we left the associated private channel, but we can still rejoin it using payments.fulfillstarssubscription because the current subscription period hasn’t expired yet.
missingBalance: boolean or undefinedWhether this subscription has expired because there are not enough stars on the user’s balance to extend it.
botCanceled: boolean or undefinedSet if this bot subscription was cancelled by the bot
id: stringSubscription id.
peer: Raw.TypePeerIdentifier of the associated private chat.
untilDate: numberExpiration date of the current subscription period.
pricing: Raw.TypeStarsSubscriptionPricingPricing of the subscription in telegram stars.
chatInviteHash: string or undefinedInvitation link, used to renew the subscription after cancellation or expiration.
title: string or undefinedFor bot subscriptions, the title of the subscription invoice
photo: Raw.TypeWebDocument or undefinedFor bot subscriptions, the photo from the subscription invoice
invoiceSlug: string or undefinedFor bot subscriptions, the identifier of the subscription invoice