PagerMaid-Pyro/pagermaid/__init__.py
xtaodada a941308d17
Some checks failed
Docker Dev Build / docker build and publish (push) Failing after 13s
Docker Build / docker build and publish (push) Failing after 11s
🔖 Update to v1.5.0
这是一项破坏性变更,目录结构进行了重组,无核心功能变化
2024-09-28 22:01:40 +08:00

18 lines
437 B
Python

import contextlib
import pagermaid.update
from pagermaid.config import Config as _Config
from pagermaid.utils import logs as _logs
module_dir = __path__[0]
if not _Config.API_ID or not _Config.API_HASH:
_logs.warning("Api-ID or Api-HASH Not Found!")
_Config.API_ID = _Config.DEFAULT_API_ID
_Config.API_HASH = _Config.DEFAULT_API_HASH
with contextlib.suppress(ImportError):
import uvloop # noqa
uvloop.install()