teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
Photo
Class Photo
Hierarchy (
View Summary
)
VirtualClass
<
{
accessHash
:
long
;
date
:
int
;
dcId
:
int
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
long
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
TypeVideoSize
[]
;
}
,
>
Photo
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
class
Name
class
Type
CONSTRUCTOR_
ID
date
dc
Id
file
Reference
has
Stickers?
id
original
Args
sizes
SUBCLASS_
OF_
ID
video
Sizes?
Constructors
constructor
new
Photo
(
args
:
{
accessHash
:
BigInteger
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
BigInteger
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
TypeVideoSize
[]
;
}
,
)
:
Api
.
Photo
Parameters
args
:
{
accessHash
:
BigInteger
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
BigInteger
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
TypeVideoSize
[]
;
}
Returns
Api
.
Photo
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
Api
.
Photo
Parameters
reader
:
any
Returns
Api
.
Photo
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
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
BigInteger
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
TypeVideoSize
[]
;
}
Returns
{
accessHash
:
BigInteger
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
BigInteger
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
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
class
Name
className
:
"Photo"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
4212750949
date
date
:
number
dc
Id
dcId
:
number
file
Reference
fileReference
:
bytes
Optional
has
Stickers
hasStickers
?:
boolean
id
id
:
BigInteger
original
Args
originalArgs
:
{
accessHash
:
BigInteger
;
date
:
number
;
dcId
:
number
;
fileReference
:
bytes
;
hasStickers
?:
boolean
;
id
:
BigInteger
;
sizes
:
TypePhotoSize
[]
;
videoSizes
?:
TypeVideoSize
[]
;
}
sizes
sizes
:
TypePhotoSize
[]
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
3581324060
Optional
video
Sizes
videoSizes
?:
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
class
Name
class
Type
CONSTRUCTOR_
ID
date
dc
Id
file
Reference
has
Stickers
id
original
Args
sizes
SUBCLASS_
OF_
ID
video
Sizes
GitHub
npm
Issues
teleproto - v1.229.0
Loading...