Search
Preparing search index...
The search index is not available
telegram
Options
All
Public
Public/Protected
All
Inherited
Menu
telegram
Api
Document
Class Document
Hierarchy
VirtualClass
<
{
id
:
long
;
accessHash
:
long
;
fileReference
:
bytes
;
date
:
int
;
mimeType
:
string
;
size
:
long
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
int
;
attributes
:
TypeDocumentAttribute
[]
}
>
Document
Index
Properties
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
original
Args
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Type
class
Name
id
access
Hash
file
Reference
date
mime
Type
size
thumbs
video
Thumbs
dc
Id
attributes
Methods
serialize
Bytes
serialize
Date
get
Bytes
toJSON
from
Reader
Constructors
constructor
Properties
Static
CONSTRUCTOR_
ID
CONSTRUCTOR_
ID
:
number
Static
SUBCLASS_
OF_
ID
SUBCLASS_
OF_
ID
:
number
Static
class
Name
class
Name
:
string
Static
class
Type
class
Type
:
"constructor"
|
"request"
original
Args
original
Args
:
{
id
:
BigInteger
;
accessHash
:
BigInteger
;
fileReference
:
Buffer
;
date
:
number
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
number
;
attributes
:
TypeDocumentAttribute
[]
}
Type declaration
id
:
BigInteger
access
Hash
:
BigInteger
file
Reference
:
Buffer
date
:
number
mime
Type
:
string
size
:
BigInteger
Optional
thumbs
?:
TypePhotoSize
[]
Optional
video
Thumbs
?:
TypeVideoSize
[]
dc
Id
:
number
attributes
:
TypeDocumentAttribute
[]
CONSTRUCTOR_
ID
CONSTRUCTOR_
ID
:
2413085912
SUBCLASS_
OF_
ID
SUBCLASS_
OF_
ID
:
555739168
class
Type
class
Type
:
"constructor"
class
Name
class
Name
:
"Document"
id
id
:
BigInteger
access
Hash
access
Hash
:
BigInteger
file
Reference
file
Reference
:
Buffer
date
date
:
number
mime
Type
mime
Type
:
string
size
size
:
BigInteger
Optional
thumbs
thumbs
?:
TypePhotoSize
[]
Optional
video
Thumbs
video
Thumbs
?:
TypeVideoSize
[]
dc
Id
dc
Id
:
number
attributes
attributes
:
TypeDocumentAttribute
[]
Methods
Static
serialize
Bytes
serialize
Bytes
(
data
:
string
|
Buffer
)
:
Buffer
Parameters
data:
string
|
Buffer
Returns
Buffer
Static
serialize
Date
serialize
Date
(
date
:
number
|
Date
)
:
Buffer
Parameters
date:
number
|
Date
Returns
Buffer
get
Bytes
get
Bytes
(
)
:
Buffer
Returns
Buffer
toJSON
toJSON
(
)
:
{
id
:
BigInteger
;
accessHash
:
BigInteger
;
fileReference
:
Buffer
;
date
:
number
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
number
;
attributes
:
TypeDocumentAttribute
[]
}
Returns
{
id
:
BigInteger
;
accessHash
:
BigInteger
;
fileReference
:
Buffer
;
date
:
number
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
number
;
attributes
:
TypeDocumentAttribute
[]
}
id
:
BigInteger
access
Hash
:
BigInteger
file
Reference
:
Buffer
date
:
number
mime
Type
:
string
size
:
BigInteger
Optional
thumbs
?:
TypePhotoSize
[]
Optional
video
Thumbs
?:
TypeVideoSize
[]
dc
Id
:
number
attributes
:
TypeDocumentAttribute
[]
Static
from
Reader
from
Reader
(
reader
:
any
)
:
Document
Parameters
reader:
any
Returns
Document
Constructors
constructor
new
Document
(
args
:
{
id
:
BigInteger
;
accessHash
:
BigInteger
;
fileReference
:
Buffer
;
date
:
number
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
number
;
attributes
:
TypeDocumentAttribute
[]
}
)
:
Document
Parameters
args:
{
id
:
BigInteger
;
accessHash
:
BigInteger
;
fileReference
:
Buffer
;
date
:
number
;
mimeType
:
string
;
size
:
BigInteger
;
thumbs
?:
TypePhotoSize
[]
;
videoThumbs
?:
TypeVideoSize
[]
;
dcId
:
number
;
attributes
:
TypeDocumentAttribute
[]
}
id
:
BigInteger
access
Hash
:
BigInteger
file
Reference
:
Buffer
date
:
number
mime
Type
:
string
size
:
BigInteger
Optional
thumbs
?:
TypePhotoSize
[]
Optional
video
Thumbs
?:
TypeVideoSize
[]
dc
Id
:
number
attributes
:
TypeDocumentAttribute
[]
Returns
Document
Exports
helpers
password
utils
client
errors
extensions
sessions
Api
storage
auth
contacts
messages
updates
photos
upload
help
account
channels
payments
phone
stats
stickers
users
chatlists
bots
stories
premium
langpack
folders
tl
custom
Document
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
serialize
Bytes
serialize
Date
get
Bytes
constructor
original
Args
toJSON
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Type
class
Name
from
Reader
id
access
Hash
file
Reference
date
mime
Type
size
thumbs
video
Thumbs
dc
Id
attributes
Generated using
TypeDoc