Constructor: inputMediaPoll
A poll
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| poll | Poll | Yes | The poll to send |
| correct_answers | Array of int | Optional | Correct answer IDs (for quiz polls) |
| attached_media | MessageMedia, Message, Update or InputMedia | Optional | |
| solution | string | Optional | Explanation of quiz solution |
| solution_entities | Array of MessageEntity | Optional | Message entities for styled text |
| solution_media | MessageMedia, Message, Update or InputMedia | Optional |
Type: InputMedia
Example:
$inputMediaPoll = ['_' => 'inputMediaPoll', 'poll' => Poll, 'correct_answers' => [int, int], 'attached_media' => InputMedia, 'solution' => 'string', 'solution_entities' => [MessageEntity, MessageEntity], 'solution_media' => InputMedia];