teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
InputMediaDocument
Class InputMediaDocument
Hierarchy (
View Summary
)
VirtualClass
<
{
id
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
int
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
int
;
}
,
>
InputMediaDocument
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
original
Args
query?
spoiler?
SUBCLASS_
OF_
ID
ttl
Seconds?
video
Cover?
video
Timestamp?
Constructors
constructor
new
InputMediaDocument
(
args
:
{
id
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
number
;
}
,
)
:
InputMediaDocument
Parameters
args
:
{
id
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
number
;
}
Returns
InputMediaDocument
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
InputMediaDocument
Parameters
reader
:
any
Returns
InputMediaDocument
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
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
number
;
}
Returns
{
id
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
number
;
}
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
:
"InputMediaDocument"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
2826320565
id
id
:
TypeInputDocument
original
Args
originalArgs
:
{
id
:
TypeInputDocument
;
query
?:
string
;
spoiler
?:
boolean
;
ttlSeconds
?:
number
;
videoCover
?:
TypeInputPhoto
;
videoTimestamp
?:
number
;
}
Optional
query
query
?:
string
Optional
spoiler
spoiler
?:
boolean
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
4210575092
Optional
ttl
Seconds
ttlSeconds
?:
number
Optional
video
Cover
videoCover
?:
TypeInputPhoto
Optional
video
Timestamp
videoTimestamp
?:
number
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
original
Args
query
spoiler
SUBCLASS_
OF_
ID
ttl
Seconds
video
Cover
video
Timestamp
GitHub
npm
Issues
teleproto - v1.229.0
Loading...