mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
try patch to client
This commit is contained in:
parent
43c6ba1809
commit
d23aa991a1
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ from logging import ERROR, INFO, StreamHandler, basicConfig, getLogger, handlers
|
|||
from apscheduler.jobstores.mongodb import MongoDBJobStore
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
from async_pymongo import AsyncClient
|
||||
from misskaty.helper.http import fetch
|
||||
from pymongo import MongoClient
|
||||
from pyrogram import Client
|
||||
|
||||
|
|
@ -60,6 +61,9 @@ app = Client(
|
|||
workers=50,
|
||||
max_concurrent_transmissions=20,
|
||||
)
|
||||
app.db = AsyncClient(DATABASE_URI)
|
||||
app.log = getLogger("MissKaty")
|
||||
app.fetch = fetch
|
||||
|
||||
# Pyrogram UserBot Client
|
||||
user = Client(
|
||||
|
|
|
|||
Loading…
Reference in a new issue