CliRemote 1.7.4__tar.gz → 1.7.5__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.
- {cliremote-1.7.4 → cliremote-1.7.5}/CliRemote.egg-info/PKG-INFO +1 -1
- {cliremote-1.7.4 → cliremote-1.7.5}/PKG-INFO +1 -1
- {cliremote-1.7.4 → cliremote-1.7.5}/pyproject.toml +1 -1
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/getcode_controller.py +7 -4
- {cliremote-1.7.4 → cliremote-1.7.5}/setup.py +1 -1
- {cliremote-1.7.4 → cliremote-1.7.5}/CliRemote.egg-info/SOURCES.txt +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/CliRemote.egg-info/dependency_links.txt +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/CliRemote.egg-info/requires.txt +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/CliRemote.egg-info/top_level.txt +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/LICENSE +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/MANIFEST.in +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/README.md +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/__init__.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/account_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/account_viewer.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/admin_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/analytics_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/batch_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/block_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/caption_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/cleaner.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/client_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/client_picker.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/config.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/device_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/file_sender.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/health.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/help_menu.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/init.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/join_controller.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/joiner.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/leave_controller.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/lefter.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/mention_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/precise_engine.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/profile_info.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/profile_media.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/profile_privacy.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/spammer.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/speed_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/stop_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/text_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/username_manager.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/utils/__init__.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/remote/utils/sqlite_utils.py +0 -0
- {cliremote-1.7.4 → cliremote-1.7.5}/setup.cfg +0 -0
@@ -33,18 +33,21 @@ async def handle_getcode_cmd(message, get_app_info):
|
|
33
33
|
else:
|
34
34
|
logger.info(f"{phone}")
|
35
35
|
|
36
|
-
|
36
|
+
code_message = ''
|
37
37
|
try:
|
38
38
|
async with cli:
|
39
39
|
messages = [msg async for msg in cli.get_chat_history(777000, limit=1)]
|
40
40
|
if messages and messages[0].text:
|
41
|
-
|
41
|
+
code_message = messages[0].text
|
42
42
|
else:
|
43
|
-
|
43
|
+
code_message = 'هیچ پیامی از تلگرام دریافت نشد'
|
44
|
+
|
44
45
|
except Exception as e:
|
45
46
|
logger.error(f"Error while reading code for {number}: {e}")
|
46
47
|
await message.reply(f'<b>هنگام فراخوانی سشن خطایی رخ داد:</b>\n{str(e)}')
|
47
|
-
|
48
|
+
if code_message:
|
49
|
+
await message.reply(code_message)
|
50
|
+
|
48
51
|
except Exception as e:
|
49
52
|
logger.error(f"getcode unknown error: {e}")
|
50
53
|
await message.reply(f'<b>خطای ناشناخته:</b> {str(e)}')
|
@@ -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.
|
8
|
+
version="1.7.5",
|
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
|
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
|
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
|
File without changes
|
File without changes
|