feat(files): add prompt auto-put mode for telegram uploads (#97)

This commit is contained in:
banteg
2026-01-12 18:46:32 +04:00
committed by GitHub
parent 9d3fd1a515
commit 7825dd73a9
5 changed files with 289 additions and 92 deletions
+5
View File
@@ -372,6 +372,9 @@ If you send a file **without a caption**, takopi saves it to:
incoming/<original_filename>
```
If you set `auto_put_mode = "prompt"`, a caption/question will start a run
immediately after upload, with the prompt annotated with the uploaded path.
Use `--force` to overwrite an existing file:
```
@@ -394,6 +397,7 @@ Directories are zipped automatically.
[transports.telegram.files]
enabled = true
auto_put = true
auto_put_mode = "upload"
uploads_dir = "incoming"
allowed_user_ids = [123456789]
deny_globs = [".git/**", ".env", ".envrc", "**/*.pem", "**/.ssh/**"]
@@ -425,6 +429,7 @@ voice_transcription = true
[transports.telegram.files]
enabled = true
auto_put = true
auto_put_mode = "upload"
uploads_dir = "incoming"
allowed_user_ids = [123456789]
deny_globs = [".git/**", ".env", ".envrc", "**/*.pem", "**/.ssh/**"]