1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

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

View File

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