inputMediaPoll #

A poll

Layer 223

inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
pollPollThe poll to send
correct_answersflags.0?Vector<int>0-based indices of the correct answers in the answers vector (for quiz polls)
attached_mediaflags.3?InputMediaOptional media attachment to display alongside the poll
solutionflags.1?stringText 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_entitiesflags.1?Vector<MessageEntity>Styled text message entities for the solution explanation.
solution_mediaflags.2?InputMediaOptional media attachment shown alongside the quiz solution explanation

Type #

InputMedia

Styled text with message entities #

How to create styled text with message entities