2022-06-20 13:55:14 +00:00
|
|
|
import contextlib
|
2022-08-02 04:57:08 +00:00
|
|
|
|
2023-12-12 12:29:22 +00:00
|
|
|
import pagermaid.update
|
2024-09-28 13:57:55 +00:00
|
|
|
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]
|
|
|
|
|
2024-09-28 13:57:55 +00:00
|
|
|
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()
|