Skip to main content

inputMediaPoll

A poll

type tg.InputMediaPoll struct { /* ... */ }

Implements InputMedia.

Fields​

NameTypeRequiredDescription
PollPollyesThe poll to send
CorrectAnswers[]int—Correct answer IDs (for quiz polls)
AttachedMediaInputMediaClass—AttachedMedia field of InputMediaPoll.
Solutionstring—Explanation of quiz solution
SolutionEntities[]MessageEntityClass—Message entities for styled text
SolutionMediaInputMediaClass—SolutionMedia field of InputMediaPoll.

References​