( input: string | undefined | null )
| 382 | <code>${commandName} toggle mode</code>: 切换模式, 默认是按顺序优先发送, 发送成功就不继续. 可切换为每个目标都尝试发送`; |
| 383 | |
| 384 | function sanitizeTargetInput( |
| 385 | input: string | undefined | null |
| 386 | ): string | undefined { |
| 387 | if (!input) return undefined; |
| 388 | const trimmed = input.trim(); |
| 389 | if (!trimmed) return undefined; |
| 390 | return trimmed; |
| 391 | } |
| 392 | |
| 393 | function getTargetLookup(target: TargetRecord): any { |
| 394 | if (target.chatId) { |