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

Class EventHandler

telebot/ext/reloader.py:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9logger = logging.getLogger('TeleBot')
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 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…