poll

Poll

poll#d5529d06 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> = Poll;

Parameters

Name Type Description
id long ID of the poll
flags # Flags, see TL conditional fields
closed flags.0?true Whether the poll is closed and doesn't accept any more answers
public_voters flags.1?true  
multiple_choice flags.2?true Whether multiple options can be chosen as answer
quiz flags.3?true Whether this is a quiz (with wrong and correct answers, results shown in the return type)
question string The question of the poll
answers Vector<PollAnswer> The possible answers, vote using messages.sendVote.

Type

Poll

Related pages

messages.sendVote

Vote in a poll