PagerMaid-Pyro/pagermaid/__init__.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
437 B
Python
Raw Permalink Normal View History

2022-06-20 13:55:14 +00:00
import contextlib
2022-08-02 04:57:08 +00:00
import pagermaid.update
from pagermaid.config import Config as _Config
from pagermaid.utils import logs as _logs
2022-05-23 12:40:30 +00:00
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
2022-05-27 15:09:24 +00:00
2022-06-20 13:55:14 +00:00
with contextlib.suppress(ImportError):
import uvloop # noqa
2023-03-12 03:56:01 +00:00
2022-05-27 15:09:24 +00:00
uvloop.install()