preparation

This commit is contained in:
LLB
2026-04-09 08:49:45 +04:00
parent cb34008460
commit 2360037777
5 changed files with 5083 additions and 1010 deletions
+1
View File
@@ -0,0 +1 @@
node_modules/
+2
View File
@@ -87,6 +87,7 @@ Send any message in the bot DM. It is forwarded into pi with a `[telegram]` pref
Send images, albums, or files in the DM. Send images, albums, or files in the DM.
The extension: The extension:
- downloads them to `~/.pi/agent/tmp/telegram` - downloads them to `~/.pi/agent/tmp/telegram`
- includes local file paths in the prompt - includes local file paths in the prompt
- forwards inbound images as image inputs to pi - forwards inbound images as image inputs to pi
@@ -96,6 +97,7 @@ The extension:
If you ask pi for a file or generated artifact, pi should call the `telegram_attach` tool. The extension then sends those files with the next Telegram reply. If you ask pi for a file or generated artifact, pi should call the `telegram_attach` tool. The extension then sends those files with the next Telegram reply.
Examples: Examples:
- `summarize this image` - `summarize this image`
- `read this README and summarize it` - `read this README and summarize it`
- `write me a markdown file with the plan and send it back` - `write me a markdown file with the plan and send it back`
+1279 -1008
View File
File diff suppressed because it is too large Load Diff
+3791
View File
File diff suppressed because it is too large Load Diff
+10 -2
View File
@@ -4,7 +4,13 @@
"private": false, "private": false,
"description": "Telegram DM bridge extension for pi", "description": "Telegram DM bridge extension for pi",
"type": "module", "type": "module",
"keywords": ["pi-package", "pi", "telegram", "bot", "extension"], "keywords": [
"pi-package",
"pi",
"telegram",
"bot",
"extension"
],
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -15,7 +21,9 @@
"url": "https://github.com/badlogic/pi-telegram/issues" "url": "https://github.com/badlogic/pi-telegram/issues"
}, },
"pi": { "pi": {
"extensions": ["./index.ts"] "extensions": [
"./index.ts"
]
}, },
"peerDependencies": { "peerDependencies": {
"@mariozechner/pi-ai": "*", "@mariozechner/pi-ai": "*",