Deprecated
(self, option, persistent_id = None)
| 7921 | return None |
| 7922 | |
| 7923 | def add(self, option, persistent_id = None): |
| 7924 | """ |
| 7925 | Deprecated |
| 7926 | """ |
| 7927 | logger.warning("Poll.add is deprecated and will be removed in future versions.") |
| 7928 | |
| 7929 | if type(option) is PollOption: |
| 7930 | self.options.append(option) |
| 7931 | else: |
| 7932 | self.options.append(PollOption(option, persistent_id)) |
| 7933 | |
| 7934 | |
| 7935 | class PollAnswer(JsonSerializable, JsonDeserializable, Dictionaryable): |
no test coverage detected