From 04ff428bbab2b33941acad3c71dd1de103a2a2e4 Mon Sep 17 00:00:00 2001 From: coder2020official Date: Sat, 1 Oct 2022 21:02:40 +0400 Subject: [PATCH] Added option to specify path to watch --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index cfe6104..e5aad03 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -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