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

Method on_any_event

telebot/ext/reloader.py:12–14  ·  view source on GitHub ↗
(self, event: FileSystemEvent)

Source from the content-addressed store, hash-verified

10
11class EventHandler(FileSystemEventHandler):
12 def on_any_event(self, event: FileSystemEvent):
13 logger.info('* Detected changes in: %s, reloading', (event.src_path))
14 restart_file()
15
16def restart_file():
17 try:

Callers

nothing calls this directly

Calls 1

restart_fileFunction · 0.85

Tested by

no test coverage detected