Search
Preparing search index...
The search index is not available
telegram
Options
All
Public
Public/Protected
All
Inherited
Menu
telegram
Api
Poll
Class Poll
Hierarchy
VirtualClass
<
{
id
:
long
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
TypePollAnswer
[]
;
closePeriod
?:
int
;
closeDate
?:
int
}
>
Poll
Index
Properties
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
original
Args
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Type
class
Name
id
closed
public
Voters
multiple
Choice
quiz
question
answers
close
Period
close
Date
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
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
PollAnswer
[]
;
closePeriod
?:
number
;
closeDate
?:
number
}
Type declaration
id
:
BigInteger
Optional
closed
?:
boolean
Optional
public
Voters
?:
boolean
Optional
multiple
Choice
?:
boolean
Optional
quiz
?:
boolean
question
:
string
answers
:
PollAnswer
[]
Optional
close
Period
?:
number
Optional
close
Date
?:
number
CONSTRUCTOR_
ID
CONSTRUCTOR_
ID
:
2262925665
SUBCLASS_
OF_
ID
SUBCLASS_
OF_
ID
:
613307771
class
Type
class
Type
:
"constructor"
class
Name
class
Name
:
"Poll"
id
id
:
BigInteger
Optional
closed
closed
?:
boolean
Optional
public
Voters
public
Voters
?:
boolean
Optional
multiple
Choice
multiple
Choice
?:
boolean
Optional
quiz
quiz
?:
boolean
question
question
:
string
answers
answers
:
PollAnswer
[]
Optional
close
Period
close
Period
?:
number
Optional
close
Date
close
Date
?:
number
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
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
PollAnswer
[]
;
closePeriod
?:
number
;
closeDate
?:
number
}
Returns
{
id
:
BigInteger
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
PollAnswer
[]
;
closePeriod
?:
number
;
closeDate
?:
number
}
id
:
BigInteger
Optional
closed
?:
boolean
Optional
public
Voters
?:
boolean
Optional
multiple
Choice
?:
boolean
Optional
quiz
?:
boolean
question
:
string
answers
:
PollAnswer
[]
Optional
close
Period
?:
number
Optional
close
Date
?:
number
Static
from
Reader
from
Reader
(
reader
:
any
)
:
Poll
Parameters
reader:
any
Returns
Poll
Constructors
constructor
new
Poll
(
args
:
{
id
:
BigInteger
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
PollAnswer
[]
;
closePeriod
?:
number
;
closeDate
?:
number
}
)
:
Poll
Parameters
args:
{
id
:
BigInteger
;
closed
?:
boolean
;
publicVoters
?:
boolean
;
multipleChoice
?:
boolean
;
quiz
?:
boolean
;
question
:
string
;
answers
:
PollAnswer
[]
;
closePeriod
?:
number
;
closeDate
?:
number
}
id
:
BigInteger
Optional
closed
?:
boolean
Optional
public
Voters
?:
boolean
Optional
multiple
Choice
?:
boolean
Optional
quiz
?:
boolean
question
:
string
answers
:
PollAnswer
[]
Optional
close
Period
?:
number
Optional
close
Date
?:
number
Returns
Poll
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
Poll
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
closed
public
Voters
multiple
Choice
quiz
question
answers
close
Period
close
Date
Generated using
TypeDoc