Added option to specify path to watch

This commit is contained in:
coder2020official 2022-10-01 21:02:40 +04:00
parent eb576d83fb
commit 04ff428bba
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ class TeleBot:
for listener in self.update_listener:
self._exec_task(listener, new_messages)
def _setup_change_detector(self):
def _setup_change_detector(self, path_to_watch: str):
try:
from watchdog.observers import Observer
from telebot.ext.reloader import EventHandler