1
0
Fork 0

chore: don't depend on pyrogram when not needed

This commit is contained in:
Arthur K. 2025-11-10 22:51:25 +03:00
parent a9cfc9b522
commit d0e42100c0
Signed by: wzray
GPG key ID: B97F30FDC4636357

View file

@ -13,7 +13,6 @@ from typing import Literal
from datetime import datetime as Dt, timedelta as Td from datetime import datetime as Dt, timedelta as Td
import urllib.parse as up import urllib.parse as up
import pyrogram
import requests import requests
FETCH_DELAY = 50 FETCH_DELAY = 50
@ -277,6 +276,7 @@ class PacerClient:
async def update_runs(delay: float | int = 5): async def update_runs(delay: float | int = 5):
import pyrogram
c = pyrogram.client.Client('user') c = pyrogram.client.Client('user')
await c.start() await c.start()