docs: restructure docs into diataxis (#121)

This commit is contained in:
banteg
2026-01-13 15:59:27 +04:00
committed by GitHub
parent d0e9a51a0f
commit e292c99ab0
52 changed files with 1538 additions and 1255 deletions
+59
View File
@@ -0,0 +1,59 @@
# File transfer
Upload files into the active repo/worktree or fetch files back into Telegram.
## Enable file transfer
```toml
[transports.telegram.files]
enabled = true
auto_put = true
auto_put_mode = "upload" # upload | prompt
uploads_dir = "incoming"
allowed_user_ids = [123456789]
deny_globs = [".git/**", ".env", ".envrc", "**/*.pem", "**/.ssh/**"]
```
Notes:
- File transfer is **disabled by default**.
- If `allowed_user_ids` is empty, private chats are allowed and group usage requires admin privileges.
## Upload a file (`/file put`)
Send a document with a caption:
```
/file put <path>
```
Examples:
```
/file put docs/spec.pdf
/file put /happy-gadgets @feat/camera assets/logo.png
```
If you send a file **without a caption**, Takopi saves it to `incoming/<original_filename>`.
Use `--force` to overwrite:
```
/file put --force docs/spec.pdf
```
## Fetch a file (`/file get`)
Send:
```
/file get <path>
```
Directories are zipped automatically.
## Related
- [Commands & directives](../reference/commands-and-directives.md)
- [Config reference](../reference/config.md)