Skip to content

v1.6.4

Choose a tag to compare

@ChiangJingYing ChiangJingYing released this 25 May 06:56
· 2 commits to main since this release

Highlights

  • 修正 Telegram 管理通知中「管理員」與「對象」的顯示邏輯:只有管理員會優先顯示 LINE profile display name;叫號對象與管理操作對象則維持 /register 註冊資料,例如 B12345678(A-1)。
  • 補齊 Telegram command / notification 與 LINE handler 的回歸測試,避免之後再把對象顯示誤改回 LINE profile 名稱。

Details

Telegram Admin Notification Target Labels

  • TelegramAdminNotificationService 現在會分開處理 admin 與 target 的 user reference formatting。
  • 對 LINE user id:管理員欄位可解析為 LINE profile display name;目標對象欄位固定保留註冊顯示名稱,不再顯示原始 user id。
  • broadcast_event 與 broadcast_serve_event 都已套用相同規則,讓 Demo完成通知、跳過通知、管理叫號通知 的格式一致。

Regression Test Alignment

  • 新增 Telegram admin notification 測試,明確驗證「管理員用 LINE display name、對象保留註冊 label」。
  • 更新 Telegram command 與 LINE handler 整合測試 expectation,與新的通知格式對齊。

Validation

  • pytest -q 通過(622 passed,coverage 81.78%)。