MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / add

Method add

telebot/types.py:7923–7932  ·  view source on GitHub ↗

Deprecated

(self, option, persistent_id = None)

Source from the content-addressed store, hash-verified

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
7935class PollAnswer(JsonSerializable, JsonDeserializable, Dictionaryable):

Callers 2

_process_pollingMethod · 0.45

Calls 1

PollOptionClass · 0.85

Tested by

no test coverage detected