generated from exteraGramPlugins/pluginBase
Client Commands: telegram-panel slash commands with Discord-style parameters
Lists the panel account's client commands as Telegram slash commands (hourly refresh, cached on the device), shows their parameters while typing, runs complete commands on the panel instead of sending them and shows the answer as an "Only visible to you" message (latest 20 kept in memory). Holding send offers Run / Send as message / Send response in chat (red ! badge); an answer's menu starts with Send in chat. Other plugins register their own commands through the client_commands library module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
84bdc44a76
commit
46a1f6ee1f
29 files changed
+3293
-220
No files matched your search
+7
-3
@@ -16,9 +16,13 @@
|
||||
```
|
||||
plugin.json single source of truth for plugin metadata
|
||||
src/ the plugin, written as an ordinary Python package
|
||||
main.py entry module — exactly one BasePlugin subclass, absolute imports only
|
||||
greeting/ sample package (proves relative + cross-module imports survive bundling)
|
||||
textutil.py sample top-level sibling module
|
||||
main.py entry module: the plugin class, settings, the send hook
|
||||
api.py telegram-panel client API (/api/v1/client/commands)
|
||||
catalog.py each account's commands: the panel's (hourly, cached on disk) + plugins'
|
||||
library.py the `client_commands` module other plugins register commands with
|
||||
runner.py runs a command on the panel or on the device, shows or sends the response
|
||||
commands/ pure Python, tested offline: model, parser (in step with the panel's), HTML
|
||||
hooks/ the app's UI: suggestion list, message field, local responses
|
||||
tools/
|
||||
bundle.py compiles plugin.json + src/ into dist/<id>.plugin
|
||||
devclient.py speaks the on-device dev-server protocol (127.0.0.1:42690)
|
||||
|
||||
Reference in new issue
Block a user