The poll annotation is meant to facilitate voting in a Channel Environment. It's currently set up to use the Channel as the question and messages as the answers. Though a clever use of reply_to could make any Message a poll question.
It is currently recommended that polls be limited to 150 characters with up to 10 options. Each option is no longer than 100 characters. This is to stay within the annotation size limit, and have space for other annotations.
{
"type": "net.questionapp.poll",
"value": {
"question": "Does App.Net rock your socks?",
"options": [
'Yeah',
'Of Course!',
'Definitely!!'
]
}
}
{
"type": "net.questionapp.poll",
"value": {
"answer": "Definitely!!"
}
}
Field | Required? | Type | Description |
---|---|---|---|
question | Required | string | A question to users. |
options | Required | list | A list of strings to present as answer options. |
Field | Required? | Type | Description |
---|---|---|---|
answer | Required | string | A answer that matches one of the above options. |
- Bryan Redeagle (@misterpoppet, [email protected])