Data about the contains information about a poll
True, if the poll allows multiple answers
True, if the poll is anonymous
Optional
closePoint in time (Unix timestamp) when the poll will be automatically closed
True, if the poll is closed
Optional
correct0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot
Optional
explanationText that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
Optional
explanationSpecial entities like usernames, URLs, bot commands, etc. that appear in the explanation
Unique poll identifier
Optional
openAmount of time in seconds the poll will be active after creation
Optional
optionsList of poll options
Poll question, 1-300 characters
Optional
questionSpecial entities that appear in the question. Currently, only custom emoji entities are allowed in poll questions
Total number of users that voted in the poll
Poll type, currently can be “regular” or “quiz”
The client that instantiated this
Return the timestamp poll will be automatically closed, in milliseconds
Point in time when the poll will be automatically closed
Protected
_cloneProtected
_updateUse this method to stop a poll which was sent by the bot. ONLY BOT POLL
Unique identifier for the target chat or username of the target channel (in the format @channelusername).
Identifier of the original message with the poll.
Optional
options: { options for stopping poll
Optional
businessUnique identifier of the business connection on behalf of which the message to be edited was sent.
Optional
replyAn object for a new message inline keyboard.
On success, the stopped Poll is returned
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this