teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
InputMediaPoll
Class InputMediaPoll
Hierarchy (
View Summary
)
VirtualClass
<
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
int
[]
;
poll
:
TypePoll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
,
>
InputMediaPoll
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
attached
Media?
class
Name
class
Type
CONSTRUCTOR_
ID
correct
Answers?
original
Args
poll
solution?
solution
Entities?
solution
Media?
SUBCLASS_
OF_
ID
Constructors
constructor
new
InputMediaPoll
(
args
:
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
number
[]
;
poll
:
Poll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
,
)
:
InputMediaPoll
Parameters
args
:
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
number
[]
;
poll
:
Poll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
Returns
InputMediaPoll
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
InputMediaPoll
Parameters
reader
:
any
Returns
InputMediaPoll
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
()
:
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
number
[]
;
poll
:
Poll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
Returns
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
number
[]
;
poll
:
Poll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
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
Optional
attached
Media
attachedMedia
?:
TypeInputMedia
class
Name
className
:
"InputMediaPoll"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
2285519112
Optional
correct
Answers
correctAnswers
?:
number
[]
original
Args
originalArgs
:
{
attachedMedia
?:
TypeInputMedia
;
correctAnswers
?:
number
[]
;
poll
:
Poll
;
solution
?:
string
;
solutionEntities
?:
TypeMessageEntity
[]
;
solutionMedia
?:
TypeInputMedia
;
}
poll
poll
:
Poll
Optional
solution
solution
?:
string
Optional
solution
Entities
solutionEntities
?:
TypeMessageEntity
[]
Optional
solution
Media
solutionMedia
?:
TypeInputMedia
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
4210575092
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
attached
Media
class
Name
class
Type
CONSTRUCTOR_
ID
correct
Answers
original
Args
poll
solution
solution
Entities
solution
Media
SUBCLASS_
OF_
ID
GitHub
npm
Issues
teleproto - v1.229.0
Loading...