feat(telegram): make resume line optional (#100)

This commit is contained in:
banteg
2026-01-12 19:49:13 +04:00
committed by GitHub
parent 637a9fc3e2
commit 98ba41f8c7
6 changed files with 95 additions and 5 deletions
+5
View File
@@ -84,6 +84,7 @@ Configuration (under `[transports.telegram]`):
[transports.telegram.topics]
enabled = true
scope = "auto" # auto | main | projects | all
show_resume_line = true
```
Requirements:
@@ -95,6 +96,10 @@ 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.
+6
View File
@@ -262,6 +262,7 @@ Topics bind Telegram forum threads to specific project/branch contexts. They als
```toml
[transports.telegram.topics]
enabled = true
# show_resume_line = false
```
Your bot needs **Manage Topics** permission in the group.
@@ -269,6 +270,8 @@ Your bot needs **Manage Topics** permission in the group.
If any `projects.<alias>.chat_id` are configured, topics are managed in those
project chats; otherwise topics are managed in the main chat.
Set `show_resume_line = false` to hide the resume command line in topic threads.
### Topic behavior
```
@@ -321,6 +324,7 @@ chat_id = -1001234567890
[transports.telegram.topics]
enabled = true
# show_resume_line = false
```
**Project chats:**
@@ -331,6 +335,7 @@ chat_id = 123456789 # main chat (private, for non-project messages)
[transports.telegram.topics]
enabled = true
# show_resume_line = false
[projects.takopi]
path = "~/dev/takopi"
@@ -455,6 +460,7 @@ deny_globs = [".git/**", ".env", ".envrc", "**/*.pem", "**/.ssh/**"]
[transports.telegram.topics]
enabled = true
scope = "auto"
show_resume_line = true
# Project definitions
[projects.takopi]