Update main.py
Browse files
main.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import logging
|
2 |
import base64
|
3 |
import requests
|
|
|
4 |
from bs4 import BeautifulSoup
|
5 |
from contextlib import asynccontextmanager
|
6 |
from akenoai import AkenoXToJs as js
|
@@ -18,6 +19,10 @@ logger.setLevel(logging.DEBUG)
|
|
18 |
fast_app = js.get_app()
|
19 |
js.add_cors_middleware()
|
20 |
|
|
|
|
|
|
|
|
|
21 |
client = create_pyrogram(
|
22 |
name="fastapi-bot",
|
23 |
api_id=API_ID,
|
|
|
1 |
import logging
|
2 |
import base64
|
3 |
import requests
|
4 |
+
import uvloop
|
5 |
from bs4 import BeautifulSoup
|
6 |
from contextlib import asynccontextmanager
|
7 |
from akenoai import AkenoXToJs as js
|
|
|
19 |
fast_app = js.get_app()
|
20 |
js.add_cors_middleware()
|
21 |
|
22 |
+
import uvloop
|
23 |
+
|
24 |
+
uvloop.install()
|
25 |
+
|
26 |
client = create_pyrogram(
|
27 |
name="fastapi-bot",
|
28 |
api_id=API_ID,
|