CliRemote 1.7.7__tar.gz → 1.7.8__tar.gz

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.
Files changed (46) hide show
  1. {cliremote-1.7.7 → cliremote-1.7.8}/CliRemote.egg-info/PKG-INFO +1 -1
  2. {cliremote-1.7.7 → cliremote-1.7.8}/PKG-INFO +1 -1
  3. {cliremote-1.7.7 → cliremote-1.7.8}/pyproject.toml +1 -1
  4. {cliremote-1.7.7 → cliremote-1.7.8}/remote/account_viewer.py +34 -13
  5. {cliremote-1.7.7 → cliremote-1.7.8}/setup.py +1 -1
  6. {cliremote-1.7.7 → cliremote-1.7.8}/CliRemote.egg-info/SOURCES.txt +0 -0
  7. {cliremote-1.7.7 → cliremote-1.7.8}/CliRemote.egg-info/dependency_links.txt +0 -0
  8. {cliremote-1.7.7 → cliremote-1.7.8}/CliRemote.egg-info/requires.txt +0 -0
  9. {cliremote-1.7.7 → cliremote-1.7.8}/CliRemote.egg-info/top_level.txt +0 -0
  10. {cliremote-1.7.7 → cliremote-1.7.8}/LICENSE +0 -0
  11. {cliremote-1.7.7 → cliremote-1.7.8}/MANIFEST.in +0 -0
  12. {cliremote-1.7.7 → cliremote-1.7.8}/README.md +0 -0
  13. {cliremote-1.7.7 → cliremote-1.7.8}/remote/__init__.py +0 -0
  14. {cliremote-1.7.7 → cliremote-1.7.8}/remote/account_manager.py +0 -0
  15. {cliremote-1.7.7 → cliremote-1.7.8}/remote/admin_manager.py +0 -0
  16. {cliremote-1.7.7 → cliremote-1.7.8}/remote/analytics_manager.py +0 -0
  17. {cliremote-1.7.7 → cliremote-1.7.8}/remote/batch_manager.py +0 -0
  18. {cliremote-1.7.7 → cliremote-1.7.8}/remote/block_manager.py +0 -0
  19. {cliremote-1.7.7 → cliremote-1.7.8}/remote/caption_manager.py +0 -0
  20. {cliremote-1.7.7 → cliremote-1.7.8}/remote/cleaner.py +0 -0
  21. {cliremote-1.7.7 → cliremote-1.7.8}/remote/client_manager.py +0 -0
  22. {cliremote-1.7.7 → cliremote-1.7.8}/remote/client_picker.py +0 -0
  23. {cliremote-1.7.7 → cliremote-1.7.8}/remote/config.py +0 -0
  24. {cliremote-1.7.7 → cliremote-1.7.8}/remote/device_manager.py +0 -0
  25. {cliremote-1.7.7 → cliremote-1.7.8}/remote/file_sender.py +0 -0
  26. {cliremote-1.7.7 → cliremote-1.7.8}/remote/getcode_controller.py +0 -0
  27. {cliremote-1.7.7 → cliremote-1.7.8}/remote/health.py +0 -0
  28. {cliremote-1.7.7 → cliremote-1.7.8}/remote/help_menu.py +0 -0
  29. {cliremote-1.7.7 → cliremote-1.7.8}/remote/init.py +0 -0
  30. {cliremote-1.7.7 → cliremote-1.7.8}/remote/join_controller.py +0 -0
  31. {cliremote-1.7.7 → cliremote-1.7.8}/remote/joiner.py +0 -0
  32. {cliremote-1.7.7 → cliremote-1.7.8}/remote/leave_controller.py +0 -0
  33. {cliremote-1.7.7 → cliremote-1.7.8}/remote/lefter.py +0 -0
  34. {cliremote-1.7.7 → cliremote-1.7.8}/remote/mention_manager.py +0 -0
  35. {cliremote-1.7.7 → cliremote-1.7.8}/remote/precise_engine.py +0 -0
  36. {cliremote-1.7.7 → cliremote-1.7.8}/remote/profile_info.py +0 -0
  37. {cliremote-1.7.7 → cliremote-1.7.8}/remote/profile_media.py +0 -0
  38. {cliremote-1.7.7 → cliremote-1.7.8}/remote/profile_privacy.py +0 -0
  39. {cliremote-1.7.7 → cliremote-1.7.8}/remote/spammer.py +0 -0
  40. {cliremote-1.7.7 → cliremote-1.7.8}/remote/speed_manager.py +0 -0
  41. {cliremote-1.7.7 → cliremote-1.7.8}/remote/stop_manager.py +0 -0
  42. {cliremote-1.7.7 → cliremote-1.7.8}/remote/text_manager.py +0 -0
  43. {cliremote-1.7.7 → cliremote-1.7.8}/remote/username_manager.py +0 -0
  44. {cliremote-1.7.7 → cliremote-1.7.8}/remote/utils/__init__.py +0 -0
  45. {cliremote-1.7.7 → cliremote-1.7.8}/remote/utils/sqlite_utils.py +0 -0
  46. {cliremote-1.7.7 → cliremote-1.7.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CliRemote
3
- Version: 1.7.7
3
+ Version: 1.7.8
4
4
  Summary: Remote client framework for Telegram automation using Pyrogram
5
5
  Home-page: https://github.com/MohammadAhmadi-R/CliRemote
6
6
  Author: MrAhmadiRad
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CliRemote
3
- Version: 1.7.7
3
+ Version: 1.7.8
4
4
  Summary: Remote client framework for Telegram automation using Pyrogram
5
5
  Home-page: https://github.com/MohammadAhmadi-R/CliRemote
6
6
  Author: MrAhmadiRad
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "CliRemote"
7
- version = "1.7.7"
7
+ version = "1.7.8"
8
8
  description = "Remote client framework for Telegram automation using Pyrogram"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1,19 +1,29 @@
1
- # antispam_core/account_viewer.py
2
- import asyncio, logging
1
+ # CliRemote/remote/account_viewer.py
2
+ import asyncio, logging, os
3
3
  from pyrogram import errors
4
4
  from .client_manager import client_pool, get_or_start_client, accounts
5
5
 
6
6
  logger = logging.getLogger(__name__)
7
7
 
8
+ ACCOUNT_LIST_PATH = os.path.join(os.getcwd(), "account_list.txt")
9
+
8
10
  async def list_accounts_cmd(message):
9
11
  """
10
12
  نمایش دقیق وضعیت اکانت‌ها (با حفظ اتصال‌ها)
11
- از client_pool برای بررسی فعال بودن استفاده می‌کند.
13
+ خروجی نهایی همیشه در account_list.txt ذخیره می‌شود و در انتها فایل ارسال می‌گردد.
12
14
  """
13
15
  try:
14
16
  acc_list = accounts()
15
17
  if not acc_list:
16
- await message.reply('لیست اکانت‌ها:\n(هیچ اکانتی وجود ندارد)')
18
+ text = 'لیست اکانت‌ها:\n(هیچ اکانتی وجود ندارد)'
19
+ # ذخیره در فایل
20
+ with open(ACCOUNT_LIST_PATH, "w", encoding="utf-8", newline="\n") as f:
21
+ f.write(text)
22
+ # ارسال فایل
23
+ await message.reply_document(
24
+ document=ACCOUNT_LIST_PATH,
25
+ caption="📋 گزارش اکانت‌ها (خالی)"
26
+ )
17
27
  return
18
28
 
19
29
  lines = ['📋 <b>لیست اکانت‌ها:</b>']
@@ -89,14 +99,25 @@ async def list_accounts_cmd(message):
89
99
 
90
100
  text = "\n".join(lines)
91
101
 
92
- # ✅ اگر خروجی خیلی طولانی بود، فایل گزارش ارسال شود
93
- if len(text) > 3900:
94
- await message.reply_document(
95
- document=("accounts_report.txt", text.encode('utf-8')),
96
- caption="📋 گزارش کامل اکانت‌ها"
97
- )
98
- else:
99
- await message.reply(text, disable_web_page_preview=True)
102
+ # ✅ همیشه ذخیره در فایل account_list.txt
103
+ with open(ACCOUNT_LIST_PATH, "w", encoding="utf-8", newline="\n") as f:
104
+ f.write(text)
105
+
106
+ # ارسال فایل خروجی
107
+ await message.reply_document(
108
+ document=ACCOUNT_LIST_PATH,
109
+ caption="📋 گزارش کامل اکانت‌ها"
110
+ )
100
111
 
101
112
  except Exception as e:
102
- await message.reply(f'<b>خطا در نمایش لیست اکانت‌ها:</b>\n{e}')
113
+ # اگر جایی خطا خورد، باز هم خطا را در فایل ذخیره و فایل را ارسال می‌کنیم
114
+ err_text = f'<b>خطا در نمایش لیست اکانت‌ها:</b>\n{e}'
115
+ try:
116
+ with open(ACCOUNT_LIST_PATH, "w", encoding="utf-8", newline="\n") as f:
117
+ f.write(err_text)
118
+ await message.reply_document(
119
+ document=ACCOUNT_LIST_PATH,
120
+ caption="⚠️ خطا هنگام تهیه گزارش"
121
+ )
122
+ except Exception:
123
+ await message.reply(err_text)
@@ -5,7 +5,7 @@ with open("README.md", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="CliRemote",
8
- version="1.7.7",
8
+ version="1.7.8",
9
9
  author="MrAhmadiRad",
10
10
  author_email="mohammadahmadirad69@gmail.com",
11
11
  description="A precise, async-safe, Telegram automation core (Python 3.8+)",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes