diff --git a/pyrogram/client.py b/pyrogram/client.py index aee53c10..5fa43849 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -801,7 +801,7 @@ class Client(Methods): pass else: for path, handlers in include: - module_path = root + "." + path + module_path = root.replace("/",".") + "." + path warn_non_existent_functions = True try: @@ -836,7 +836,7 @@ class Client(Methods): if exclude: for path, handlers in exclude: - module_path = root + "." + path + module_path = root.replace("/",".") + "." + path warn_non_existent_functions = True try: