Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.24 KB

net.questionapp.poll.md

File metadata and controls

60 lines (47 loc) · 2.24 KB

Poll

net.questionapp.poll

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.

Question Example (Placed on Channels)

{
    "type": "net.questionapp.poll",
    "value": {
        "question": "Does App.Net rock your socks?",
        "options": [
            'Yeah',
            'Of Course!',
            'Definitely!!'
        ]
    }
}

Answer Example (Placed on Messages)

{
    "type": "net.questionapp.poll",
    "value": {
        "answer": "Definitely!!"
    }
}

Question Fields

Field Required? Type Description
question Required string A question to users.
options Required list A list of strings to present as answer options.

Anser Fields

Field Required? Type Description
answer Required string A answer that matches one of the above options.

Maintainers

Used by