PagerMaid-Pyro/pagermaid/services/__init__.py
xtaodada c28eddaa4d
🔖 Update to v1.2.3
upgrade: pyrogram to 2.0.35
refactor: 依赖注入
2022-07-24 14:47:13 +08:00

11 lines
345 B
Python

from pagermaid import bot
from pagermaid import logs
from pagermaid.single_utils import sqlite
from pagermaid.scheduler import scheduler
from pagermaid.utils import client
def get(name: str):
data = {"Client": bot, "Logger": logs, "SqliteDict": sqlite, "AsyncIOScheduler": scheduler, "AsyncClient": client}
return data.get(name, None)