mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
add use uvloop
This commit is contained in:
@@ -2,6 +2,13 @@ import logging
|
||||
import os
|
||||
import re
|
||||
|
||||
try:
|
||||
import uvloop, asyncio
|
||||
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
except ImportError:
|
||||
uvloop = None
|
||||
|
||||
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
||||
ADMIN = [int(i) for i in os.getenv("BOT_ADMIN").split(",")]
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
python-telegram-bot[webhooks]~=21.3
|
||||
httpx[http2]~=0.27.0
|
||||
uvloop~=0.19.0; sys_platform != 'win32'
|
||||
Reference in New Issue
Block a user