feat(telegram): coalesce forwarded messages (#146)

This commit is contained in:
banteg
2026-01-16 00:21:04 +04:00
committed by GitHub
parent 3f2932e76d
commit e0826ed18c
7 changed files with 541 additions and 126 deletions
+1 -1
View File
@@ -30,6 +30,7 @@ chat_id = 123
| `bot_token` | string | (required) | Telegram bot token from @BotFather. |
| `chat_id` | int | (required) | Default chat id. |
| `message_overflow` | `"trim"`\|`"split"` | `"trim"` | How to handle long final responses. |
| `forward_coalesce_s` | float | `1.0` | Quiet window for combining a prompt with immediately-following forwarded messages; set `0` to disable. |
| `voice_transcription` | bool | `false` | Enable voice note transcription. |
| `voice_max_bytes` | int | `10485760` | Max voice note size (bytes). |
| `voice_transcription_model` | string | `"gpt-4o-mini-transcribe"` | OpenAI transcription model name. |
@@ -106,4 +107,3 @@ model = "..."
```
The shape is engine-defined.