CliRemote 1.7.13__py3-none-any.whl → 1.7.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cliremote-1.7.13.dist-info → cliremote-1.7.14.dist-info}/METADATA +1 -1
- {cliremote-1.7.13.dist-info → cliremote-1.7.14.dist-info}/RECORD +6 -6
- remote/admin_manager.py +7 -7
- {cliremote-1.7.13.dist-info → cliremote-1.7.14.dist-info}/WHEEL +0 -0
- {cliremote-1.7.13.dist-info → cliremote-1.7.14.dist-info}/licenses/LICENSE +0 -0
- {cliremote-1.7.13.dist-info → cliremote-1.7.14.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
|
|
1
|
-
cliremote-1.7.
|
1
|
+
cliremote-1.7.14.dist-info/licenses/LICENSE,sha256=O-0zMbcEi6wXz1DiSdVgzMlQjJcNqNe5KDv08uYzqR0,1055
|
2
2
|
remote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
remote/account_manager.py,sha256=TepnGIoE2hU-j_NmU5ByoS-JrboE0w3A1bYmQoQX5h8,15176
|
4
4
|
remote/account_viewer.py,sha256=j46KSjbgrBmBi7UxFeJ5tCwHIe0QvCvphkirGIbB2oo,5192
|
5
|
-
remote/admin_manager.py,sha256=
|
5
|
+
remote/admin_manager.py,sha256=fTtwWwlr9Kq7QGZ_gNJVa2JNVnnUEkByo4L1toUf5Ys,7422
|
6
6
|
remote/analytics_manager.py,sha256=6jPvwt_ELA4RMbQdD8W_ltfAoaSgILnEkOAp6HZAqsU,7382
|
7
7
|
remote/batch_manager.py,sha256=jVGhYVwHMKJd7f7JxcWjKlwr03dq0RaGD1KdkyYdb00,1051
|
8
8
|
remote/block_manager.py,sha256=R7UaQigr-hTRtjxjG3OvJdKhvp0mDpLaESp3Of1AYhs,5692
|
@@ -33,7 +33,7 @@ remote/text_manager.py,sha256=C2wNSXPSCDu8NSD3RsfbKmUQMWOYd1B5N4tzy-Jsriw,2195
|
|
33
33
|
remote/username_manager.py,sha256=nMNdke-2FIv86xR1Y6rR-43oUoQu_3Khw8wEo54noXI,3388
|
34
34
|
remote/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
remote/utils/sqlite_utils.py,sha256=5i0oUXsBgKC_8qHZPJ-Gyhp9D1TwqKHVvuZRIhKpS6w,1260
|
36
|
-
cliremote-1.7.
|
37
|
-
cliremote-1.7.
|
38
|
-
cliremote-1.7.
|
39
|
-
cliremote-1.7.
|
36
|
+
cliremote-1.7.14.dist-info/METADATA,sha256=byGeVYjwKOlm5Qm8bdk1hLNfvv-7YymdLxgV27YTndA,1203
|
37
|
+
cliremote-1.7.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
cliremote-1.7.14.dist-info/top_level.txt,sha256=yBZidJ6zCix_a2ubGlYaewvlzBFXWbckQt20dudxJ1E,7
|
39
|
+
cliremote-1.7.14.dist-info/RECORD,,
|
remote/admin_manager.py
CHANGED
@@ -4,8 +4,8 @@ import os
|
|
4
4
|
import sys
|
5
5
|
import logging
|
6
6
|
from pathlib import Path
|
7
|
-
from pyrogram import filters
|
8
|
-
from .
|
7
|
+
from pyrogram import filters
|
8
|
+
from . import config
|
9
9
|
|
10
10
|
# =============================
|
11
11
|
# تنظیم logger فایل
|
@@ -53,8 +53,8 @@ def load_admins() -> list[int]:
|
|
53
53
|
بارگذاری لیست ادمینها از فایل.
|
54
54
|
همیشه OWNER_ID را هم به لیست اضافه میکند.
|
55
55
|
"""
|
56
|
-
logger.debug(f"Loading admins from file: {ADMINS_FILE} | OWNER_ID: {OWNER_ID}")
|
57
|
-
s = set(OWNER_ID)
|
56
|
+
logger.debug(f"Loading admins from file: {ADMINS_FILE} | OWNER_ID: {config.OWNER_ID}")
|
57
|
+
s = set(config.OWNER_ID)
|
58
58
|
try:
|
59
59
|
if os.path.exists(ADMINS_FILE):
|
60
60
|
with open(ADMINS_FILE, "r", encoding="utf-8") as f:
|
@@ -98,7 +98,7 @@ admin_filter = filters.create(
|
|
98
98
|
lambda _, __, m: bool(getattr(m, "from_user", None)) and int(m.from_user.id) in ADMINS
|
99
99
|
)
|
100
100
|
owner_filter = filters.create(
|
101
|
-
lambda _, __, m: bool(getattr(m, "from_user", None)) and int(m.from_user.id) in OWNER_ID
|
101
|
+
lambda _, __, m: bool(getattr(m, "from_user", None)) and int(m.from_user.id) in config.OWNER_ID
|
102
102
|
)
|
103
103
|
|
104
104
|
# =============================
|
@@ -119,7 +119,7 @@ async def add_admin_cmd(message):
|
|
119
119
|
uid = int(parts[1])
|
120
120
|
logger.debug(f"add_admin_cmd: parsed target uid={uid}")
|
121
121
|
|
122
|
-
if uid in OWNER_ID:
|
122
|
+
if uid in config.OWNER_ID:
|
123
123
|
logger.info(f"add_admin_cmd: uid={uid} is OWNER; skip append")
|
124
124
|
await message.reply("ادمین اصلی از قبل وجود دارد")
|
125
125
|
return
|
@@ -151,7 +151,7 @@ async def del_admin_cmd(message):
|
|
151
151
|
uid = int(parts[1])
|
152
152
|
logger.debug(f"del_admin_cmd: parsed target uid={uid}")
|
153
153
|
|
154
|
-
if uid in OWNER_ID:
|
154
|
+
if uid in config.OWNER_ID:
|
155
155
|
logger.info(f"del_admin_cmd: attempt to remove OWNER uid={uid} blocked")
|
156
156
|
await message.reply("❌ امکان حذف ادمین اصلی وجود ندارد")
|
157
157
|
return
|
File without changes
|
File without changes
|
File without changes
|