diff --git a/classes/pyroclient.py b/classes/pyroclient.py index 96316b4..eacc48e 100644 --- a/classes/pyroclient.py +++ b/classes/pyroclient.py @@ -40,6 +40,8 @@ class PyroClient(Client): api_id=config["bot"]["api_id"], api_hash=config["bot"]["api_hash"], bot_token=config["bot"]["bot_token"], + # Workers should be commented when using convopyro, otherwise + # handlers land in another event loop and you won't see them workers=config["bot"]["workers"], plugins=dict(root="plugins", exclude=config["disabled_plugins"]), sleep_threshold=120, diff --git a/main.py b/main.py index 60dbe2e..785fd11 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,8 @@ from modules.scheduler import scheduler # Uncomment this and the line below client declaration # in order to use context manager in your commands. +# Don't forget to disable PyroClient workers if you want +# to use convopyro, because workers create more event loops. # from convopyro import Conversation