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

Method __skip_updates

telebot/__init__.py:667–675  ·  view source on GitHub ↗

Get and discard all pending updates before first poll of the bot. :meta private: :return:

(self)

Source from the content-addressed store, hash-verified

665 return [types.Update.de_json(ju) for ju in json_updates]
666
667 def __skip_updates(self):
668 """
669 Get and discard all pending updates before first poll of the bot.
670
671 :meta private:
672
673 :return:
674 """
675 self.get_updates(offset=-1)
676
677 def __retrieve_updates(self, timeout=20, long_polling_timeout=20, allowed_updates=None):
678 """

Callers 3

__retrieve_updatesMethod · 0.95
infinity_pollingMethod · 0.95
pollingMethod · 0.95

Calls 1

get_updatesMethod · 0.95

Tested by

no test coverage detected