teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
InputMediaPhoto
Class InputMediaPhoto
Hierarchy (
View Summary
)
VirtualClass
<
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
int
;
video
?:
TypeInputDocument
;
}
,
>
InputMediaPhoto
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
CONSTRUCTOR_
ID
id
live
Photo?
original
Args
spoiler?
SUBCLASS_
OF_
ID
ttl
Seconds?
video?
Constructors
constructor
new
InputMediaPhoto
(
args
:
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
video
?:
TypeInputDocument
;
}
,
)
:
InputMediaPhoto
Parameters
args
:
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
video
?:
TypeInputDocument
;
}
Returns
InputMediaPhoto
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
InputMediaPhoto
Parameters
reader
:
any
Returns
InputMediaPhoto
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
()
:
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
video
?:
TypeInputDocument
;
}
Returns
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
video
?:
TypeInputDocument
;
}
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
class
Name
className
:
"InputMediaPhoto"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
3819914292
id
id
:
TypeInputPhoto
Optional
live
Photo
livePhoto
?:
boolean
original
Args
originalArgs
:
{
id
:
TypeInputPhoto
;
livePhoto
?:
boolean
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
video
?:
TypeInputDocument
;
}
Optional
spoiler
spoiler
?:
boolean
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
4210575092
Optional
ttl
Seconds
ttlSeconds
?:
number
Optional
video
video
?:
TypeInputDocument
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
class
Name
class
Type
CONSTRUCTOR_
ID
id
live
Photo
original
Args
spoiler
SUBCLASS_
OF_
ID
ttl
Seconds
video
GitHub
npm
Issues
teleproto - v1.229.0
Loading...