teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
Document
Class Document
Hierarchy (
View Summary
)
VirtualClass
<
{
accessHash
:
long
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
int
;
dcId
:
int
;
fileReference
:
bytes
;
id
:
long
;
mimeType
:
string
;
size
:
long
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
,
>
Document
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
access
Hash
attributes
class
Name
class
Type
CONSTRUCTOR_
ID
date
dc
Id
file
Reference
id
mime
Type
original
Args
size
SUBCLASS_
OF_
ID
thumbs?
video
Thumbs?
Constructors
constructor
new
Document
(
args
:
{
accessHash
:
BigInteger
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
id
:
BigInteger
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
,
)
:
Document
Parameters
args
:
{
accessHash
:
BigInteger
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
id
:
BigInteger
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
Returns
Document
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
Document
Parameters
reader
:
any
Returns
Document
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
()
:
{
accessHash
:
BigInteger
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
id
:
BigInteger
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
Returns
{
accessHash
:
BigInteger
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
id
:
BigInteger
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
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
access
Hash
accessHash
:
BigInteger
attributes
attributes
:
TypeDocumentAttribute
[]
class
Name
className
:
"Document"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
2413085912
date
date
:
number
dc
Id
dcId
:
number
file
Reference
fileReference
:
bytes
id
id
:
BigInteger
mime
Type
mimeType
:
string
original
Args
originalArgs
:
{
accessHash
:
BigInteger
;
attributes
:
TypeDocumentAttribute
[]
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
id
:
BigInteger
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
}
size
size
:
BigInteger
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
555739168
Optional
thumbs
thumbs
?:
TypePhotoSize
[]
Optional
video
Thumbs
videoThumbs
?:
TypeVideoSize
[]
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
access
Hash
attributes
class
Name
class
Type
CONSTRUCTOR_
ID
date
dc
Id
file
Reference
id
mime
Type
original
Args
size
SUBCLASS_
OF_
ID
thumbs
video
Thumbs
GitHub
npm
Issues
teleproto - v1.229.0
Loading...