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

Method skip_updates

telebot/async_telebot.py:2795–2801  ·  view source on GitHub ↗

Skip existing updates. Only last update will remain on server.

(self)

Source from the content-addressed store, hash-verified

2793 }
2794
2795 async def skip_updates(self):
2796 """
2797 Skip existing updates.
2798 Only last update will remain on server.
2799 """
2800 await self.get_updates(-1)
2801 return True
2802
2803 # all methods begin here
2804

Callers 2

pollingMethod · 0.95
infinity_pollingMethod · 0.95

Calls 1

get_updatesMethod · 0.95

Tested by

no test coverage detected