(event, reply, options = {})
| 5439 | } |
| 5440 | |
| 5441 | async function sendOneBotGroupReply(event, reply, options = {}) { |
| 5442 | if (!event.groupId) return { ok: false, reason: "Missing group id" }; |
| 5443 | if (options.singleBubble) { |
| 5444 | return sendOneBotGroupMessage(event, reply, { quoteSource: isExplicitQqAtEvent(event) }); |
| 5445 | } |
| 5446 | return sendQqGroupBubbles({ |
| 5447 | event, |
| 5448 | reply, |
| 5449 | quoteFirstBubble: isExplicitQqAtEvent(event), |
| 5450 | sendGroupMessage: (bubble, options) => sendOneBotGroupMessage(event, bubble, options) |
| 5451 | }); |
| 5452 | } |
| 5453 | |
| 5454 | async function sendOneBotGroupMessage(event, reply, options = {}) { |
| 5455 | if (!event.groupId) return { ok: false, reason: "Missing group id" }; |
no test coverage detected