teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
StarsSubscription
Class StarsSubscription
Hierarchy (
View Summary
)
VirtualClass
<
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
TypeStarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
int
;
}
,
>
StarsSubscription
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
bot
Canceled?
canceled?
can
Refulfill?
chat
Invite
Hash?
class
Name
class
Type
CONSTRUCTOR_
ID
id
invoice
Slug?
missing
Balance?
original
Args
peer
photo?
pricing
SUBCLASS_
OF_
ID
title?
until
Date
Constructors
constructor
new
StarsSubscription
(
args
:
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
StarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
number
;
}
,
)
:
StarsSubscription
Parameters
args
:
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
StarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
number
;
}
Returns
StarsSubscription
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
StarsSubscription
Parameters
reader
:
any
Returns
StarsSubscription
Static
serialize
Bytes
serializeBytes
(
data
:
string
|
Buffer
<
ArrayBufferLike
>
)
:
Buffer
Parameters
data
:
string
|
Buffer
<
ArrayBufferLike
>
Returns
Buffer
Static
serialize
Date
serializeDate
(
date
:
number
|
Date
)
:
Buffer
Parameters
date
:
number
|
Date
Returns
Buffer
get
Bytes
getBytes
()
:
Buffer
Returns
Buffer
to
JSON
toJSON
()
:
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
StarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
number
;
}
Returns
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
StarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
number
;
}
Properties
Static
class
Name
className
:
string
Static
class
Type
classType
:
"constructor"
|
"request"
Static
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
number
Static
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
number
Optional
bot
Canceled
botCanceled
?:
boolean
Optional
canceled
canceled
?:
boolean
Optional
can
Refulfill
canRefulfill
?:
boolean
Optional
chat
Invite
Hash
chatInviteHash
?:
string
class
Name
className
:
"StarsSubscription"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
779004698
id
id
:
string
Optional
invoice
Slug
invoiceSlug
?:
string
Optional
missing
Balance
missingBalance
?:
boolean
original
Args
originalArgs
:
{
botCanceled
?:
boolean
;
canceled
?:
boolean
;
canRefulfill
?:
boolean
;
chatInviteHash
?:
string
;
id
:
string
;
invoiceSlug
?:
string
;
missingBalance
?:
boolean
;
peer
:
TypePeer
;
photo
?:
TypeWebDocument
;
pricing
:
StarsSubscriptionPricing
;
title
?:
string
;
untilDate
:
number
;
}
peer
peer
:
TypePeer
Optional
photo
photo
?:
TypeWebDocument
pricing
pricing
:
StarsSubscriptionPricing
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
3974965699
Optional
title
title
?:
string
until
Date
untilDate
:
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
bot
Canceled
canceled
can
Refulfill
chat
Invite
Hash
class
Name
class
Type
CONSTRUCTOR_
ID
id
invoice
Slug
missing
Balance
original
Args
peer
photo
pricing
SUBCLASS_
OF_
ID
title
until
Date
GitHub
npm
Issues
teleproto - v1.229.0
Loading...