fix(bot): complete command flow coverage

This commit is contained in:
ShukeBta
2026-06-07 12:42:21 +08:00
parent b38d47a27d
commit a3b4dbf1c1
4 changed files with 312 additions and 17 deletions
+5
View File
@@ -110,4 +110,9 @@ func TestTelegramCommandFiltering(t *testing.T) {
if telegramSupportedCommand("/签到") {
t.Fatal("unrelated group bot command should not be handled")
}
for _, cmd := range []string{"/signin", "/redeem", "/gencode", "/users", "/renew_user", "/delete_user", "/cleanup_rule"} {
if !telegramSupportedCommand(cmd) {
t.Fatalf("%s should be supported so group slash commands get feedback", cmd)
}
}
}