(original: Api.Message, text: string)
| 530 | targetArgs = args.slice(1); |
| 531 | for (const [p, c] of this.chatCache) |
| 532 | if (c.username?.toLowerCase() === gn) { scopePeer = p; break; } |
| 533 | if (!scopePeer) { |
| 534 | try { |
| 535 | const e = entityFields(await cl.getEntity(gn)); |
| 536 | if (e.username?.toLowerCase() === gn) scopePeer = String(e.id); |
| 537 | } catch {} |
| 538 | if (!scopePeer) { |
| 539 | await msg.edit({ text: `❌ 无法解析群组 @${gn}`, parseMode: "html" }); |