mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 15:24:03 +08:00
update workers to 50
This commit is contained in:
parent
5899216a00
commit
42022d3e45
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -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
|
||||||
|
|
2
ytdl.py
2
ytdl.py
|
@ -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"]))
|
||||||
|
|
Loading…
Reference in a new issue