A poll
inputMediaPoll#6b3765b poll:Poll = InputMedia;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| poll | Poll | The poll to send |
| correct_answers | flags.0?Vector<int> | 0-based indices of the correct answers in the answers vector (for quiz polls) |
| attached_media | flags.3?InputMedia | Optional media attachment to display alongside the poll |
| solution | flags.1?string | Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds. |
| solution_entities | flags.1?Vector<MessageEntity> | Styled text message entities for the solution explanation. |
| solution_media | flags.2?InputMedia | Optional media attachment shown alongside the quiz solution explanation |
How to create styled text with message entities