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:
parent
eb576d83fb
commit
04ff428bba
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user