Telebot  4.7.0
Library for Telegram bot API
Public Attributes | List of all members
telebot_poll Struct Reference

This object contains information about a poll. More...

#include <telebot-types.h>

Public Attributes

char * id
 
char * question
 
telebot_poll_option_toptions
 
int count_options
 
int total_voter_count
 
bool is_closed
 
bool is_anonymous
 
char * type
 
bool allows_multiple_answers
 
int correct_option_id
 

Detailed Description

This object contains information about a poll.

Member Data Documentation

◆ allows_multiple_answers

bool telebot_poll::allows_multiple_answers

True, if the poll allows multiple answers

◆ correct_option_id

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.

◆ id

char* telebot_poll::id

Unique poll identifier

◆ is_anonymous

bool telebot_poll::is_anonymous

True, if the poll is anonymous

◆ is_closed

bool telebot_poll::is_closed

True, if the poll is closed

◆ options

telebot_poll_option_t* telebot_poll::options

List of poll options

◆ question

char* telebot_poll::question

Poll question, 1-255 characters

◆ total_voter_count

int telebot_poll::total_voter_count

Total number of users that voted in the poll

◆ type

char* telebot_poll::type

Poll type, currently can be "regular" or "quiz"


The documentation for this struct was generated from the following file: