update workers to 50

This commit is contained in:
BennyThink 2021-08-14 18:16:37 +08:00
parent 5899216a00
commit 42022d3e45
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -136,5 +136,5 @@ dmypy.json
/.idea/misc.xml /.idea/misc.xml
/.idea/workspace.xml /.idea/workspace.xml
/.idea/jsonSchemas.xml /.idea/jsonSchemas.xml
/demo.session /*.session
/.idea/ytdlbot.iml /.idea/ytdlbot.iml

View File

@ -24,7 +24,7 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(filename)s [%(le
api_id = int(os.getenv("APP_ID", 0)) api_id = int(os.getenv("APP_ID", 0))
api_hash = os.getenv("APP_HASH") api_hash = os.getenv("APP_HASH")
token = os.getenv("TOKEN") token = os.getenv("TOKEN")
app = Client("ytdl", api_id, api_hash, bot_token=token, workers=20) app = Client("ytdl", api_id, api_hash, bot_token=token, workers=50)
@app.on_message(filters.command(["start"])) @app.on_message(filters.command(["start"]))