From dfac26706e7fbca410011c02eadaed4c541f7a1d Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 7 Feb 2020 12:53:31 +0300 Subject: [PATCH] Add is_anonymous flag to Poll type --- telebot/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/types.py b/telebot/types.py index b6a2cdf..a288e6e 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -2244,6 +2244,8 @@ class Poll(JsonDeserializable): is_closed = obj['is_closed'] poll.id = poll_id poll.is_closed = is_closed + is_anonymous = obj['is_anonymous'] + poll.is_anonymous = is_anonymous return poll def __init__(self, question):