Available Types

All types used in the MasterPoll API responses are represented as JSON-objects.

Optional fields may be not returned when irrelevant.

Poll


This type returns the poll’s data.

Name Type Description
poll_id Integer This is the identifier of the poll.
owner_id Integer This is the Telegram identifier of the owner.
title String (1-512 characters) This is the title of the poll.
description String (1-512 characters) This is the description of the poll.
privacy String (1-32 characters) This is the privacy of the poll.
It can be anonymous or personal.
status String This is the status of the poll.
It can be open or closed.
type String (1-64 characters) This is the type of poll.
It can be vote, doodle, limited doodle, board, participation, rating or quiz.
participants Array of strings If the type of poll is participation here you can find all names of the participants.
participating Boolean If the type of poll is participation here you can find if you’re participating or not.
comments Array of strings If the type of poll is board here you can find all comments.
If the privacy is set to personal the keys of all comments is the name of its.
rating Array of strings If the type of poll is rating here you can find the user’s rating.
choices Array of strings If the type of poll is vote, doodle, limited doodle or quiz here you can find all options and the number of voters for each option.
If the privacy is personal the values of all options will be an array of names.
max_choices Integer If the type of poll is limited doodle this is the max choices that can be inserted.
right_choices Array of strings If the type of poll is quiz there are the right choices.

Settings


This type returns the poll’s settings.

Name Type Description
disable_web_page_preview Boolean Enable/Disable the web page preview for the message or show if is disabled or enabled.
disable_web_content_preview Boolean Disable the content preview for the message.
web_content_preview String The direct link for a media preview on the message.
sort Boolean Sort the options by number of votes.
appendable Boolean Enable/Disable the append option.
notification Boolean Enable/Disable notifications for append or board options.
votes_limit Integer (0-999) Set votes limit or remove it with 0.