Added comments on workers
This commit is contained in:
parent
64b54a4efc
commit
c68d589260
@ -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,
|
||||
|
2
main.py
2
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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user