Data about the contains information about a poll
True, if the poll allows multiple answers
True, if the poll is anonymous
True, if the poll is closed
OptionalclosePoint in time (Unix timestamp) when the poll will be automatically closed
Optionalcorrect0-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
OptionalexplanationText that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
OptionalexplanationSpecial entities like usernames, URLs, bot commands, etc. that appear in the explanation
Unique poll identifier
OptionalopenAmount of time in seconds the poll will be active after creation
OptionaloptionsList of poll options
Poll question, 1-300 characters
OptionalquestionSpecial 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
Point in time when the poll will be automatically closed
Return the timestamp poll will be automatically closed, in milliseconds
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.
Optionaloptions: { businessConnectionId?: string; replyMarkup?: InlineKeyboardMarkup }options for stopping poll
OptionalbusinessConnectionId?: stringUnique identifier of the business connection on behalf of which the message to be edited was sent.
OptionalreplyMarkup?: InlineKeyboardMarkupAn 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.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this