teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
SponsoredPeer
Class SponsoredPeer
Hierarchy (
View Summary
)
VirtualClass
<
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
,
>
SponsoredPeer
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
additional
Info?
class
Name
class
Type
CONSTRUCTOR_
ID
original
Args
peer
random
Id
sponsor
Info?
SUBCLASS_
OF_
ID
Constructors
constructor
new
SponsoredPeer
(
args
:
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
,
)
:
SponsoredPeer
Parameters
args
:
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
Returns
SponsoredPeer
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
SponsoredPeer
Parameters
reader
:
any
Returns
SponsoredPeer
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
()
:
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
Returns
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
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
additional
Info
additionalInfo
?:
string
class
Name
className
:
"SponsoredPeer"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
3331786963
original
Args
originalArgs
:
{
additionalInfo
?:
string
;
peer
:
TypePeer
;
randomId
:
bytes
;
sponsorInfo
?:
string
;
}
peer
peer
:
TypePeer
random
Id
randomId
:
bytes
Optional
sponsor
Info
sponsorInfo
?:
string
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
1064665102
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
additional
Info
class
Name
class
Type
CONSTRUCTOR_
ID
original
Args
peer
random
Id
sponsor
Info
SUBCLASS_
OF_
ID
GitHub
npm
Issues
teleproto - v1.229.0
Loading...