Link Search Menu Expand Document

Constructor: inputMediaPoll

Back to constructors index

A poll

Attributes:

NameTypeRequiredDescription
pollPollYesThe poll to send
correct_answersArray of bytesOptionalCorrect answer IDs (for quiz polls)
solutionstringOptionalExplanation of quiz solution
solution_entitiesArray of MessageEntityOptionalMessage entities for styled text

Type: InputMedia

Example:

$inputMediaPoll = ['_' => 'inputMediaPoll', 'poll' => Poll, 'correct_answers' => ['bytes', 'bytes'], 'solution' => 'string', 'solution_entities' => [MessageEntity, MessageEntity]];