feat(telegram): optional resume (#104)

This commit is contained in:
banteg
2026-01-12 19:59:25 +04:00
committed by GitHub
parent 98ba41f8c7
commit 2f9787ac27
8 changed files with 123 additions and 22 deletions
+5 -5
View File
@@ -48,6 +48,7 @@ line. If you want auto-resume without replies, enable chat sessions.
Configuration (under `[transports.telegram]`):
```toml
show_resume_line = true # set false to hide resume lines
session_mode = "chat" # or "stateless"
```
@@ -59,6 +60,10 @@ Behavior:
State is stored in `telegram_chat_sessions_state.json` alongside the config file.
Set `show_resume_line = false` to hide resume lines when takopi can auto-resume
(topics or chat sessions) and a project context is resolved. Otherwise the resume
line stays visible so reply-to-continue still works.
## Message overflow
By default, takopi trims long final responses to ~3500 characters to stay under
@@ -84,7 +89,6 @@ Configuration (under `[transports.telegram]`):
[transports.telegram.topics]
enabled = true
scope = "auto" # auto | main | projects | all
show_resume_line = true
```
Requirements:
@@ -96,10 +100,6 @@ Requirements:
- `auto`: if any project chats are configured, uses `projects`; otherwise `main`.
- The bot needs the **Manage Topics** permission in the relevant chat(s).
Optional:
- `show_resume_line`: set `false` to hide the resume command line in topic threads.
Commands:
- `main`: `/topic <project> @branch` creates a topic in the main chat and binds it.