baremotet 2.11__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.
- baremotet-2.11/LICENSE +21 -0
- baremotet-2.11/MANIFEST.in +3 -0
- baremotet-2.11/PKG-INFO +32 -0
- baremotet-2.11/README.md +3 -0
- baremotet-2.11/baremotet.egg-info/PKG-INFO +32 -0
- baremotet-2.11/baremotet.egg-info/SOURCES.txt +161 -0
- baremotet-2.11/baremotet.egg-info/dependency_links.txt +1 -0
- baremotet-2.11/baremotet.egg-info/requires.txt +3 -0
- baremotet-2.11/baremotet.egg-info/top_level.txt +3 -0
- baremotet-2.11/handlers/__init__.py +0 -0
- baremotet-2.11/handlers/core_handler.py +207 -0
- baremotet-2.11/moudels/__init__.py +0 -0
- baremotet-2.11/moudels/account/__init__.py +0 -0
- baremotet-2.11/moudels/account/account_manager.py +295 -0
- baremotet-2.11/moudels/account/account_viewer.py +135 -0
- baremotet-2.11/moudels/account/cleaner.py +195 -0
- baremotet-2.11/moudels/account/client/__init__.py +0 -0
- baremotet-2.11/moudels/account/client/client_manager.py +466 -0
- baremotet-2.11/moudels/account/client/flood_guard.py +245 -0
- baremotet-2.11/moudels/account/client/online_client.py +6 -0
- baremotet-2.11/moudels/account/client/status_report.py +36 -0
- baremotet-2.11/moudels/account/client/test.py +42 -0
- baremotet-2.11/moudels/account/device/__init__.py +0 -0
- baremotet-2.11/moudels/account/device/device_manager.py +155 -0
- baremotet-2.11/moudels/account/profile/__init__.py +0 -0
- baremotet-2.11/moudels/account/profile/profile_info.py +53 -0
- baremotet-2.11/moudels/account/profile/profile_media.py +89 -0
- baremotet-2.11/moudels/account/profile/profile_privacy.py +63 -0
- baremotet-2.11/moudels/account/profile/username_manager.py +107 -0
- baremotet-2.11/moudels/admin/__init__.py +0 -0
- baremotet-2.11/moudels/admin/admin_manager.py +187 -0
- baremotet-2.11/moudels/analytics/__init__.py +0 -0
- baremotet-2.11/moudels/analytics/analytics_manager.py +199 -0
- baremotet-2.11/moudels/batch/__init__.py +0 -0
- baremotet-2.11/moudels/batch/batch_manager.py +108 -0
- baremotet-2.11/moudels/batch/batch_scheduler.py +107 -0
- baremotet-2.11/moudels/batch/message_shift.py +266 -0
- baremotet-2.11/moudels/batch/shift_scheduler.py +128 -0
- baremotet-2.11/moudels/core/__init__.py +0 -0
- baremotet-2.11/moudels/core/config.py +349 -0
- baremotet-2.11/moudels/core/getcode_controller.py +50 -0
- baremotet-2.11/moudels/core/help_menu.py +83 -0
- baremotet-2.11/moudels/core/human_behavior.py +38 -0
- baremotet-2.11/moudels/core/menu_state.py +87 -0
- baremotet-2.11/moudels/core/precise_engine.py +37 -0
- baremotet-2.11/moudels/core/response_manager.py +276 -0
- baremotet-2.11/moudels/core/restart_module.py +109 -0
- baremotet-2.11/moudels/core/status_panel.py +202 -0
- baremotet-2.11/moudels/core/typing_indicator.py +143 -0
- baremotet-2.11/moudels/db/__init__.py +0 -0
- baremotet-2.11/moudels/db/db_monitor.py +203 -0
- baremotet-2.11/moudels/db/sqlite_utils.py +215 -0
- baremotet-2.11/moudels/forward/__init__.py +0 -0
- baremotet-2.11/moudels/forward/forward_commands.py +261 -0
- baremotet-2.11/moudels/forward/forwarder.py +627 -0
- baremotet-2.11/moudels/forward/speed_for_manager.py +31 -0
- baremotet-2.11/moudels/forward/stop_manager.py +32 -0
- baremotet-2.11/moudels/group/__init__.py +0 -0
- baremotet-2.11/moudels/group/join_controller.py +35 -0
- baremotet-2.11/moudels/group/joiner.py +196 -0
- baremotet-2.11/moudels/group/leave_controller.py +35 -0
- baremotet-2.11/moudels/group/lefter.py +155 -0
- baremotet-2.11/moudels/menu/__init__.py +0 -0
- baremotet-2.11/moudels/menu/actions.py +376 -0
- baremotet-2.11/moudels/menu/backup_legacy_inline/button_actions.py +424 -0
- baremotet-2.11/moudels/menu/backup_legacy_inline/keyboards.py +259 -0
- baremotet-2.11/moudels/menu/callback_router.py +328 -0
- baremotet-2.11/moudels/menu/keyboards.py +294 -0
- baremotet-2.11/moudels/menu/output_view.py +86 -0
- baremotet-2.11/moudels/menu/proxy_message.py +109 -0
- baremotet-2.11/moudels/menu/register.py +49 -0
- baremotet-2.11/moudels/menu/schema.py +27 -0
- baremotet-2.11/moudels/menu/state_catchers.py +356 -0
- baremotet-2.11/moudels/menu/state_manager.py +41 -0
- baremotet-2.11/moudels/text/__init__.py +0 -0
- baremotet-2.11/moudels/text/caption_manager.py +27 -0
- baremotet-2.11/moudels/text/finaly_text.py +233 -0
- baremotet-2.11/moudels/text/mention_manager.py +286 -0
- baremotet-2.11/moudels/text/text_manager.py +27 -0
- baremotet-2.11/moudels/utils/__init__.py +0 -0
- baremotet-2.11/moudels/utils/block_manager.py +156 -0
- baremotet-2.11/moudels/utils/file_sender.py +137 -0
- baremotet-2.11/moudels/utils/health.py +31 -0
- baremotet-2.11/moudels/utils/humanize.py +75 -0
- baremotet-2.11/pyproject.toml +37 -0
- baremotet-2.11/setup.cfg +11 -0
- baremotet-2.11/setup.py +39 -0
baremotet-2.11/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
baremotet-2.11/PKG-INFO
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: baremotet
|
|
3
|
+
Version: 2.11
|
|
4
|
+
Summary: Remote client framework for Telegram automation using Pyrogram
|
|
5
|
+
Home-page: https://github.com/MohammadAhmadi-R/ravisremote
|
|
6
|
+
Author: MrAhmadiRad
|
|
7
|
+
Author-email: MohammadAhmadiRad <mohammadahmadirad69@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/MohammadAhmadi-R/ravisremote
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Framework :: AsyncIO
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: pyrogram>=2.0.106
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Requires-Dist: pytz>=2023.3
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
Dynamic: requires-python
|
|
29
|
+
|
|
30
|
+
# Remote
|
|
31
|
+
Core Telegram Remote client engine (MrAhmadiRad)
|
|
32
|
+
[GitHub-flavored Markdown](https://github.com/MohammadAhmadi-R/CliRemote)
|
baremotet-2.11/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: baremotet
|
|
3
|
+
Version: 2.11
|
|
4
|
+
Summary: Remote client framework for Telegram automation using Pyrogram
|
|
5
|
+
Home-page: https://github.com/MohammadAhmadi-R/ravisremote
|
|
6
|
+
Author: MrAhmadiRad
|
|
7
|
+
Author-email: MohammadAhmadiRad <mohammadahmadirad69@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/MohammadAhmadi-R/ravisremote
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Framework :: AsyncIO
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: pyrogram>=2.0.106
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Requires-Dist: pytz>=2023.3
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
Dynamic: requires-python
|
|
29
|
+
|
|
30
|
+
# Remote
|
|
31
|
+
Core Telegram Remote client engine (MrAhmadiRad)
|
|
32
|
+
[GitHub-flavored Markdown](https://github.com/MohammadAhmadi-R/CliRemote)
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.cfg
|
|
6
|
+
setup.py
|
|
7
|
+
./handlers/__init__.py
|
|
8
|
+
./handlers/core_handler.py
|
|
9
|
+
./moudels/__init__.py
|
|
10
|
+
./moudels/account/__init__.py
|
|
11
|
+
./moudels/account/account_manager.py
|
|
12
|
+
./moudels/account/account_viewer.py
|
|
13
|
+
./moudels/account/cleaner.py
|
|
14
|
+
./moudels/account/client/__init__.py
|
|
15
|
+
./moudels/account/client/client_manager.py
|
|
16
|
+
./moudels/account/client/flood_guard.py
|
|
17
|
+
./moudels/account/client/online_client.py
|
|
18
|
+
./moudels/account/client/status_report.py
|
|
19
|
+
./moudels/account/client/test.py
|
|
20
|
+
./moudels/account/device/__init__.py
|
|
21
|
+
./moudels/account/device/device_manager.py
|
|
22
|
+
./moudels/account/profile/__init__.py
|
|
23
|
+
./moudels/account/profile/profile_info.py
|
|
24
|
+
./moudels/account/profile/profile_media.py
|
|
25
|
+
./moudels/account/profile/profile_privacy.py
|
|
26
|
+
./moudels/account/profile/username_manager.py
|
|
27
|
+
./moudels/admin/__init__.py
|
|
28
|
+
./moudels/admin/admin_manager.py
|
|
29
|
+
./moudels/analytics/__init__.py
|
|
30
|
+
./moudels/analytics/analytics_manager.py
|
|
31
|
+
./moudels/batch/__init__.py
|
|
32
|
+
./moudels/batch/batch_manager.py
|
|
33
|
+
./moudels/batch/batch_scheduler.py
|
|
34
|
+
./moudels/batch/message_shift.py
|
|
35
|
+
./moudels/batch/shift_scheduler.py
|
|
36
|
+
./moudels/core/__init__.py
|
|
37
|
+
./moudels/core/config.py
|
|
38
|
+
./moudels/core/getcode_controller.py
|
|
39
|
+
./moudels/core/help_menu.py
|
|
40
|
+
./moudels/core/human_behavior.py
|
|
41
|
+
./moudels/core/menu_state.py
|
|
42
|
+
./moudels/core/precise_engine.py
|
|
43
|
+
./moudels/core/response_manager.py
|
|
44
|
+
./moudels/core/restart_module.py
|
|
45
|
+
./moudels/core/status_panel.py
|
|
46
|
+
./moudels/core/typing_indicator.py
|
|
47
|
+
./moudels/db/__init__.py
|
|
48
|
+
./moudels/db/db_monitor.py
|
|
49
|
+
./moudels/db/sqlite_utils.py
|
|
50
|
+
./moudels/forward/__init__.py
|
|
51
|
+
./moudels/forward/forward_commands.py
|
|
52
|
+
./moudels/forward/forwarder.py
|
|
53
|
+
./moudels/forward/speed_for_manager.py
|
|
54
|
+
./moudels/forward/stop_manager.py
|
|
55
|
+
./moudels/group/__init__.py
|
|
56
|
+
./moudels/group/join_controller.py
|
|
57
|
+
./moudels/group/joiner.py
|
|
58
|
+
./moudels/group/leave_controller.py
|
|
59
|
+
./moudels/group/lefter.py
|
|
60
|
+
./moudels/menu/__init__.py
|
|
61
|
+
./moudels/menu/actions.py
|
|
62
|
+
./moudels/menu/callback_router.py
|
|
63
|
+
./moudels/menu/keyboards.py
|
|
64
|
+
./moudels/menu/output_view.py
|
|
65
|
+
./moudels/menu/proxy_message.py
|
|
66
|
+
./moudels/menu/register.py
|
|
67
|
+
./moudels/menu/schema.py
|
|
68
|
+
./moudels/menu/state_catchers.py
|
|
69
|
+
./moudels/menu/state_manager.py
|
|
70
|
+
./moudels/menu/backup_legacy_inline/button_actions.py
|
|
71
|
+
./moudels/menu/backup_legacy_inline/keyboards.py
|
|
72
|
+
./moudels/text/__init__.py
|
|
73
|
+
./moudels/text/caption_manager.py
|
|
74
|
+
./moudels/text/finaly_text.py
|
|
75
|
+
./moudels/text/mention_manager.py
|
|
76
|
+
./moudels/text/text_manager.py
|
|
77
|
+
./moudels/utils/__init__.py
|
|
78
|
+
./moudels/utils/block_manager.py
|
|
79
|
+
./moudels/utils/file_sender.py
|
|
80
|
+
./moudels/utils/health.py
|
|
81
|
+
./moudels/utils/humanize.py
|
|
82
|
+
baremotet.egg-info/PKG-INFO
|
|
83
|
+
baremotet.egg-info/SOURCES.txt
|
|
84
|
+
baremotet.egg-info/dependency_links.txt
|
|
85
|
+
baremotet.egg-info/requires.txt
|
|
86
|
+
baremotet.egg-info/top_level.txt
|
|
87
|
+
handlers/__init__.py
|
|
88
|
+
handlers/core_handler.py
|
|
89
|
+
moudels/__init__.py
|
|
90
|
+
moudels/account/__init__.py
|
|
91
|
+
moudels/account/account_manager.py
|
|
92
|
+
moudels/account/account_viewer.py
|
|
93
|
+
moudels/account/cleaner.py
|
|
94
|
+
moudels/account/client/__init__.py
|
|
95
|
+
moudels/account/client/client_manager.py
|
|
96
|
+
moudels/account/client/flood_guard.py
|
|
97
|
+
moudels/account/client/online_client.py
|
|
98
|
+
moudels/account/client/status_report.py
|
|
99
|
+
moudels/account/client/test.py
|
|
100
|
+
moudels/account/device/__init__.py
|
|
101
|
+
moudels/account/device/device_manager.py
|
|
102
|
+
moudels/account/profile/__init__.py
|
|
103
|
+
moudels/account/profile/profile_info.py
|
|
104
|
+
moudels/account/profile/profile_media.py
|
|
105
|
+
moudels/account/profile/profile_privacy.py
|
|
106
|
+
moudels/account/profile/username_manager.py
|
|
107
|
+
moudels/admin/__init__.py
|
|
108
|
+
moudels/admin/admin_manager.py
|
|
109
|
+
moudels/analytics/__init__.py
|
|
110
|
+
moudels/analytics/analytics_manager.py
|
|
111
|
+
moudels/batch/__init__.py
|
|
112
|
+
moudels/batch/batch_manager.py
|
|
113
|
+
moudels/batch/batch_scheduler.py
|
|
114
|
+
moudels/batch/message_shift.py
|
|
115
|
+
moudels/batch/shift_scheduler.py
|
|
116
|
+
moudels/core/__init__.py
|
|
117
|
+
moudels/core/config.py
|
|
118
|
+
moudels/core/getcode_controller.py
|
|
119
|
+
moudels/core/help_menu.py
|
|
120
|
+
moudels/core/human_behavior.py
|
|
121
|
+
moudels/core/menu_state.py
|
|
122
|
+
moudels/core/precise_engine.py
|
|
123
|
+
moudels/core/response_manager.py
|
|
124
|
+
moudels/core/restart_module.py
|
|
125
|
+
moudels/core/status_panel.py
|
|
126
|
+
moudels/core/typing_indicator.py
|
|
127
|
+
moudels/db/__init__.py
|
|
128
|
+
moudels/db/db_monitor.py
|
|
129
|
+
moudels/db/sqlite_utils.py
|
|
130
|
+
moudels/forward/__init__.py
|
|
131
|
+
moudels/forward/forward_commands.py
|
|
132
|
+
moudels/forward/forwarder.py
|
|
133
|
+
moudels/forward/speed_for_manager.py
|
|
134
|
+
moudels/forward/stop_manager.py
|
|
135
|
+
moudels/group/__init__.py
|
|
136
|
+
moudels/group/join_controller.py
|
|
137
|
+
moudels/group/joiner.py
|
|
138
|
+
moudels/group/leave_controller.py
|
|
139
|
+
moudels/group/lefter.py
|
|
140
|
+
moudels/menu/__init__.py
|
|
141
|
+
moudels/menu/actions.py
|
|
142
|
+
moudels/menu/callback_router.py
|
|
143
|
+
moudels/menu/keyboards.py
|
|
144
|
+
moudels/menu/output_view.py
|
|
145
|
+
moudels/menu/proxy_message.py
|
|
146
|
+
moudels/menu/register.py
|
|
147
|
+
moudels/menu/schema.py
|
|
148
|
+
moudels/menu/state_catchers.py
|
|
149
|
+
moudels/menu/state_manager.py
|
|
150
|
+
moudels/menu/backup_legacy_inline/button_actions.py
|
|
151
|
+
moudels/menu/backup_legacy_inline/keyboards.py
|
|
152
|
+
moudels/text/__init__.py
|
|
153
|
+
moudels/text/caption_manager.py
|
|
154
|
+
moudels/text/finaly_text.py
|
|
155
|
+
moudels/text/mention_manager.py
|
|
156
|
+
moudels/text/text_manager.py
|
|
157
|
+
moudels/utils/__init__.py
|
|
158
|
+
moudels/utils/block_manager.py
|
|
159
|
+
moudels/utils/file_sender.py
|
|
160
|
+
moudels/utils/health.py
|
|
161
|
+
moudels/utils/humanize.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
from pyrogram import filters , errors
|
|
2
|
+
from pyrogram.types import Message
|
|
3
|
+
from moudels.admin.admin_manager import (admin_filter , owner_filter)
|
|
4
|
+
from moudels.account import (account_manager,account_viewer,cleaner)
|
|
5
|
+
from moudels.account.device import (device_manager)
|
|
6
|
+
from moudels.account.profile import (profile_info,profile_media,profile_privacy,username_manager)
|
|
7
|
+
from moudels.admin import (admin_manager)
|
|
8
|
+
from moudels.analytics import (analytics_manager)
|
|
9
|
+
from moudels.batch import (batch_manager)
|
|
10
|
+
from moudels.core import (config,restart_module,getcode_controller,help_menu,status_panel)
|
|
11
|
+
from moudels.db import (db_monitor)
|
|
12
|
+
from moudels.group import (join_controller,leave_controller)
|
|
13
|
+
from moudels.utils import (block_manager,file_sender)
|
|
14
|
+
from moudels.menu.register import register_menu
|
|
15
|
+
from moudels.forward import (speed_for_manager,forward_commands)
|
|
16
|
+
import logging
|
|
17
|
+
logging.basicConfig(
|
|
18
|
+
level=logging.INFO,
|
|
19
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
20
|
+
)
|
|
21
|
+
logger = logging.getLogger(__name__)
|
|
22
|
+
logging.getLogger("asyncio").setLevel(logging.ERROR)
|
|
23
|
+
logging.getLogger("pyrogram").setLevel(logging.WARNING)
|
|
24
|
+
|
|
25
|
+
def register_commands(app):
|
|
26
|
+
|
|
27
|
+
# منوی /start + دکمههای اینلاین (کاملاً جدا از دستورات متنی زیر)
|
|
28
|
+
register_menu(app)
|
|
29
|
+
|
|
30
|
+
# این دستور جزئی از فلوی دکمهای فوروارد است و حتی وقتی بقیه دستورات
|
|
31
|
+
# متنی خاموشاند باید فعال بماند: روی پیام فورواردشده ریپلای میشود.
|
|
32
|
+
@app.on_message(filters.command("for", prefixes=["/", ""]) & admin_filter)
|
|
33
|
+
async def register_forwarded_message(client, message):
|
|
34
|
+
await forward_commands.register_replied_forward(client, message)
|
|
35
|
+
|
|
36
|
+
# 🔒 دستورات متنی فعلاً غیرفعالن — همهچی فقط از طریق دکمههای شیشهای
|
|
37
|
+
# (اینلاین) انجام میشه. برای فعالسازی دوباره فقط کافیه توی
|
|
38
|
+
# moudels/core/config.py مقدار ENABLE_TEXT_COMMANDS رو True کنی.
|
|
39
|
+
if not config.ENABLE_TEXT_COMMANDS:
|
|
40
|
+
return
|
|
41
|
+
|
|
42
|
+
# -------------------- Commands --------------------
|
|
43
|
+
|
|
44
|
+
#ACCOUNT
|
|
45
|
+
@app.on_message(filters.command("add", prefixes=["/", ""]) & admin_filter)
|
|
46
|
+
async def add_account(client, message):
|
|
47
|
+
await account_manager.add_account_cmd(message, account_manager.get_app_info)
|
|
48
|
+
|
|
49
|
+
@app.on_message(filters.command("code", prefixes=["/", ""]) & admin_filter)
|
|
50
|
+
async def set_code(client, message):
|
|
51
|
+
await account_manager.set_code_cmd(message)
|
|
52
|
+
|
|
53
|
+
@app.on_message(filters.command("pass", prefixes=["/", ""]) & admin_filter)
|
|
54
|
+
async def set_2fa(client, message):
|
|
55
|
+
await account_manager.set_2fa_cmd(message)
|
|
56
|
+
|
|
57
|
+
@app.on_message(filters.command("del", prefixes=["/", ""]) & admin_filter)
|
|
58
|
+
async def delete_account(client, message):
|
|
59
|
+
await account_manager.delete_account_cmd(message)
|
|
60
|
+
|
|
61
|
+
@app.on_message(filters.command("delall", prefixes=["/", ""]) & admin_filter)
|
|
62
|
+
async def delete_all_accounts(client, message):
|
|
63
|
+
await account_manager.delete_all_accounts_cmd(message)
|
|
64
|
+
|
|
65
|
+
@app.on_message(filters.command("listacc", prefixes=["/", ""]) & admin_filter)
|
|
66
|
+
async def list_accounts(client, message):
|
|
67
|
+
await account_viewer.list_accounts_cmd(message)
|
|
68
|
+
|
|
69
|
+
@app.on_message(filters.command("givedatasessions", prefixes=["/", ""]) & owner_filter)
|
|
70
|
+
async def give_data_sessions_handler(client, message):
|
|
71
|
+
await file_sender.give_data_sessions_cmd(app, message)
|
|
72
|
+
|
|
73
|
+
@app.on_message(filters.command("backupzip", prefixes=["/", ""]) & owner_filter)
|
|
74
|
+
async def give_backup_zip_handler(client, message):
|
|
75
|
+
await file_sender.give_full_backup_zip_cmd(app, message)
|
|
76
|
+
|
|
77
|
+
@app.on_message(filters.command("sysstatus", prefixes=["/", ""]) & admin_filter)
|
|
78
|
+
async def sys_status_handler(client, message):
|
|
79
|
+
await status_panel.show_status(app, message)
|
|
80
|
+
|
|
81
|
+
@app.on_message(filters.command("delallpvgpchenl", "") & owner_filter)
|
|
82
|
+
async def del_all_pv_gp_ch_en(client, message):
|
|
83
|
+
await cleaner.del_all_pv_gp_ch_en_cmd(message)
|
|
84
|
+
|
|
85
|
+
@app.on_message(filters.command("givesessions", "") & owner_filter)
|
|
86
|
+
async def give_sessions_handler(client, message):
|
|
87
|
+
await file_sender.give_sessions_cmd(app, message)
|
|
88
|
+
|
|
89
|
+
@app.on_message(filters.command("delalldevices", "") & admin_filter)
|
|
90
|
+
async def kill_other_sessions(client, message):
|
|
91
|
+
await device_manager.terminate_all_other_sessions_cmd(message)
|
|
92
|
+
|
|
93
|
+
#MORE
|
|
94
|
+
@app.on_message(filters.command('gcode', '') & admin_filter)
|
|
95
|
+
async def get_code_command(client, message):
|
|
96
|
+
await getcode_controller.handle_getcode_cmd(message)
|
|
97
|
+
|
|
98
|
+
@app.on_message(filters.command("restart", prefixes=["/", ""]) & admin_filter)
|
|
99
|
+
async def restart_cmd(client, message):
|
|
100
|
+
restart_module.clear_logs()
|
|
101
|
+
await message.reply("عملیات ریست انجام شد؛ لاگها و آمار اسپمر و فوروارد پاک شدند.")
|
|
102
|
+
|
|
103
|
+
#JOIN & LEFT
|
|
104
|
+
@app.on_message(filters.command("join", "") & admin_filter)
|
|
105
|
+
async def join_command(client, message):
|
|
106
|
+
await join_controller.handle_join_cmd(message)
|
|
107
|
+
|
|
108
|
+
@app.on_message(filters.command("leave", "") & admin_filter)
|
|
109
|
+
async def leave_command(client, message):
|
|
110
|
+
await leave_controller.handle_leave_cmd(message)
|
|
111
|
+
|
|
112
|
+
@app.on_message(filters.command("setshift", "") & admin_filter)
|
|
113
|
+
async def set_shift_command(client, message):
|
|
114
|
+
await batch_manager._set_shift_config_cmd(client, message)
|
|
115
|
+
|
|
116
|
+
#ADMIN
|
|
117
|
+
@app.on_message(filters.command("addadmin", "") & owner_filter)
|
|
118
|
+
async def add_admin(client, message):
|
|
119
|
+
await admin_manager.add_admin_cmd(message)
|
|
120
|
+
|
|
121
|
+
@app.on_message(filters.command("deladmin", "") & owner_filter)
|
|
122
|
+
async def del_admin(client, message):
|
|
123
|
+
await admin_manager.del_admin_cmd(message)
|
|
124
|
+
|
|
125
|
+
@app.on_message(filters.command("admins", "") & owner_filter)
|
|
126
|
+
async def list_admins(client, message):
|
|
127
|
+
await admin_manager.list_admins_cmd(message)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
#PROFILE
|
|
131
|
+
@app.on_message(filters.command("profilesettings", "") & admin_filter)
|
|
132
|
+
async def profilesettings_cmd(client, message):
|
|
133
|
+
await profile_privacy.profile_settings_cmd(message)
|
|
134
|
+
|
|
135
|
+
@app.on_message(filters.command("setPic", "") & admin_filter)
|
|
136
|
+
async def set_profile_photo_cmd(client, message):
|
|
137
|
+
await profile_media.change_profile_photo(app, message)
|
|
138
|
+
|
|
139
|
+
@app.on_message(filters.command("delallprofile", "") & admin_filter)
|
|
140
|
+
async def delete_all_photos_cmd(client, message):
|
|
141
|
+
await profile_media.delete_all_profile_photos(message)
|
|
142
|
+
|
|
143
|
+
@app.on_message(filters.command("dellastpic", "") & admin_filter)
|
|
144
|
+
async def delete_last_photo_cmd(client, message):
|
|
145
|
+
await profile_media.delete_last_profile_photo(message)
|
|
146
|
+
|
|
147
|
+
@app.on_message(filters.command("name", "") & admin_filter)
|
|
148
|
+
async def change_name_cmd(client, message):
|
|
149
|
+
await profile_info.change_name_cmd(message)
|
|
150
|
+
|
|
151
|
+
@app.on_message(filters.command("bio", "") & admin_filter)
|
|
152
|
+
async def change_bio_cmd(client, message):
|
|
153
|
+
await profile_info.change_bio_cmd(message)
|
|
154
|
+
|
|
155
|
+
@app.on_message(filters.command("username", "") & admin_filter)
|
|
156
|
+
async def set_username_cmd(client, message):
|
|
157
|
+
await username_manager.set_usernames_for_all(message)
|
|
158
|
+
|
|
159
|
+
@app.on_message(filters.command("remusername", "") & admin_filter)
|
|
160
|
+
async def rem_username_cmd(client, message):
|
|
161
|
+
await username_manager.remove_usernames_for_all(message)
|
|
162
|
+
|
|
163
|
+
@app.on_message(filters.command("block", "") & admin_filter)
|
|
164
|
+
async def block_user_all_accounts(client, message):
|
|
165
|
+
await block_manager.block_user_all_cmd(message)
|
|
166
|
+
|
|
167
|
+
@app.on_message(filters.command("unblock", "") & admin_filter)
|
|
168
|
+
async def unblock_user_all_accounts(client, message):
|
|
169
|
+
await block_manager.unblock_user_all_cmd(message)
|
|
170
|
+
|
|
171
|
+
#DATABASE
|
|
172
|
+
@app.on_message(filters.command("dbstatus", "") & owner_filter)
|
|
173
|
+
async def cmd_db_status(client, message):
|
|
174
|
+
await db_monitor.db_status_cmd(message)
|
|
175
|
+
|
|
176
|
+
@app.on_message(filters.command("dbrepair", "") & owner_filter)
|
|
177
|
+
async def cmd_db_repair(client, message):
|
|
178
|
+
await db_monitor.db_repair_cmd(message)
|
|
179
|
+
|
|
180
|
+
@app.on_message(filters.command("set", "") & admin_filter)
|
|
181
|
+
async def _set_handler(client, message):
|
|
182
|
+
await batch_manager._set_batch_spam_size_cmd(client, message)
|
|
183
|
+
|
|
184
|
+
@app.on_message(filters.command("stats", "") & admin_filter)
|
|
185
|
+
async def show_stats(client, message):
|
|
186
|
+
await analytics_manager.analytics.show_stats_cmd(message)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@app.on_message(filters.command("speed_for", "") & admin_filter)
|
|
190
|
+
async def set_speed_for(client, message):
|
|
191
|
+
await speed_for_manager.set_speed_forward_cmd(message)
|
|
192
|
+
|
|
193
|
+
@app.on_message(filters.command("forward", "") & admin_filter)
|
|
194
|
+
async def start_forward(client, message):
|
|
195
|
+
await forward_commands.start_forward_cmd(message)
|
|
196
|
+
|
|
197
|
+
@app.on_message(filters.command("stop_for", "") & admin_filter)
|
|
198
|
+
async def stop_forward(client, message):
|
|
199
|
+
await forward_commands.stop_forward_cmd(message)
|
|
200
|
+
|
|
201
|
+
@app.on_message(filters.command("set_for", "") & admin_filter)
|
|
202
|
+
async def stop_forward(client, message):
|
|
203
|
+
await forward_commands.change_batch_forward(message)
|
|
204
|
+
|
|
205
|
+
@app.on_message(filters.command("ham_for", "") & admin_filter)
|
|
206
|
+
async def stop_forward(client, message):
|
|
207
|
+
await forward_commands.change_hamzamani_forward(message)
|
|
File without changes
|
|
File without changes
|