Shujakuin
|
f5207d840c
|
fix: telegram polling recovery after network failures (#7468)
|
2026-04-12 13:42:51 +08:00 |
|
sanyekana
|
a5e86c8b94
|
fix(telegram): preserve attachment captions (#7020)
* fix(telegram): preserve attachment captions
* Update astrbot/core/platform/sources/telegram/tg_adapter.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
2026-03-27 11:29:03 +08:00 |
|
camera-2018
|
7cf77adbc8
|
feat(telegram): supports sendMessageDraft API (#5726)
* feat(telegram): 使用 sendMessageDraft API 实现私聊流式输出
- 新增 _send_message_draft 方法封装 Telegram Bot API sendMessageDraft
- 私聊流式输出使用 sendMessageDraft 推送草稿动画,群聊保留 edit_message_text 回退
- 使用独立异步发送循环 (_draft_sender_loop) 按固定间隔推送最新缓冲区内容,
完全解耦 token 到达速度与 API 网络延迟
- 流式结束后发送真实消息保留最终内容(draft 是临时的)
- 使用模块级递增 draft_id 替代随机生成,确保 Telegram 端动画连续性
* fix(telegram): convert draft text to Markdown before sending message draft
* chore(telegram): telegram 适配器重构
- 提取公共方法
- 有新 token 到达时触发流式
- 生成结束后清除draft内容
- 默认draft发送md格式
* style(telegram): ruff format
* style(telegram): ruff check
---------
Co-authored-by: Soulter <905617992@qq.com>
|
2026-03-05 11:20:28 +08:00 |
|
whatevertogo
|
7b731ebda8
|
test: enhance test framework with comprehensive fixtures and mocks (#5354)
* test: enhance test framework with comprehensive fixtures and mocks
- Add shared mock builders for aiocqhttp, discord, telegram
- Add test helpers for platform configs and mock objects
- Expand conftest.py with test profile support
- Update coverage test workflow configuration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* refactor(tests): 移动并重构模拟 LLM 响应和消息组件函数
* fix(tests): 优化 pytest_runtest_setup 中的标记检查逻辑
---------
Co-authored-by: whatevertogo <whatevertogo@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-02-23 23:35:15 +08:00 |
|