refactor: align message target wording

This commit is contained in:
Peter Steinberger
2026-01-17 04:18:59 +00:00
parent 9a60d431c5
commit 8ebfa2950d
18 changed files with 27 additions and 27 deletions

View File

@@ -185,7 +185,7 @@ export const zaloPlugin: ChannelPlugin<ResolvedZaloAccount> = {
return "ZALO_BOT_TOKEN can only be used for the default account.";
}
if (!input.useEnv && !input.token && !input.tokenFile) {
return "Zalo requires --token or --token-file (or --use-env).";
return "Zalo requires targetken or --token-file (or --use-env).";
}
return null;
},
@@ -284,7 +284,7 @@ export const zaloPlugin: ChannelPlugin<ResolvedZaloAccount> = {
if (!trimmed) {
return {
ok: false,
error: new Error("Delivering to Zalo requires --to <chatId>"),
error: new Error("Delivering to Zalo requires target <chatId>"),
};
}
return { ok: true, to: trimmed };