Telebot
4.7.0
Library for Telegram bot API
|
This object contains information about a poll. More...
#include <telebot-types.h>
Public Attributes | |
char * | id |
char * | question |
telebot_poll_option_t * | options |
int | count_options |
int | total_voter_count |
bool | is_closed |
bool | is_anonymous |
char * | type |
bool | allows_multiple_answers |
int | correct_option_id |
This object contains information about a poll.
bool telebot_poll::allows_multiple_answers |
True, if the poll allows multiple answers
int telebot_poll::correct_option_id |
Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
char* telebot_poll::id |
Unique poll identifier
bool telebot_poll::is_anonymous |
True, if the poll is anonymous
bool telebot_poll::is_closed |
True, if the poll is closed
telebot_poll_option_t* telebot_poll::options |
List of poll options
char* telebot_poll::question |
Poll question, 1-255 characters
int telebot_poll::total_voter_count |
Total number of users that voted in the poll
char* telebot_poll::type |
Poll type, currently can be "regular" or "quiz"