Added comments on workers

This commit is contained in:
Profitroll 2023-06-01 15:53:47 +02:00
parent 64b54a4efc
commit c68d589260
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@ class PyroClient(Client):
api_id=config["bot"]["api_id"], api_id=config["bot"]["api_id"],
api_hash=config["bot"]["api_hash"], api_hash=config["bot"]["api_hash"],
bot_token=config["bot"]["bot_token"], 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"], workers=config["bot"]["workers"],
plugins=dict(root="plugins", exclude=config["disabled_plugins"]), plugins=dict(root="plugins", exclude=config["disabled_plugins"]),
sleep_threshold=120, sleep_threshold=120,

View File

@ -7,6 +7,8 @@ from modules.scheduler import scheduler
# Uncomment this and the line below client declaration # Uncomment this and the line below client declaration
# in order to use context manager in your commands. # 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 # from convopyro import Conversation