telegram.Poll¶
-
class
telegram.Poll(id, question, options, is_closed, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis object contains information about a poll.
-
id¶ Unique poll identifier.
Type: str
-
question¶ Poll question, 1-255 characters.
Type: str
-
options¶ List of poll options.
Type: List[ PollOption]
-
is_closed¶ True, if the poll is closed.
Type: bool
Parameters: - id (
str) – Unique poll identifier. - question (
str) – Poll question, 1-255 characters. - options (List[
PollOption]) – List of poll options. - is_closed (
bool) – True, if the poll is closed.
-