mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 11:00:26 +00:00
fix(model): land #30932 auth-profile @ parsing for /model (@haosenwang1018)
Landed from contributor PR #30932 by @haosenwang1018. Co-authored-by: haosenwang1018 <haosenwang1018@users.noreply.github.com>
This commit is contained in:
@@ -1775,10 +1775,14 @@ describe("createTelegramBot", () => {
|
||||
});
|
||||
|
||||
expect(sendMessageSpy.mock.calls.length).toBeGreaterThan(1);
|
||||
for (const call of sendMessageSpy.mock.calls) {
|
||||
expect((call[2] as { reply_to_message_id?: number } | undefined)?.reply_to_message_id).toBe(
|
||||
messageId,
|
||||
);
|
||||
for (const [index, call] of sendMessageSpy.mock.calls.entries()) {
|
||||
const actual = (call[2] as { reply_to_message_id?: number } | undefined)
|
||||
?.reply_to_message_id;
|
||||
if (mode === "all" || index === 0) {
|
||||
expect(actual).toBe(messageId);
|
||||
} else {
|
||||
expect(actual).toBeUndefined();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -294,7 +294,7 @@ export async function deliverReplies(params: {
|
||||
replyMarkup,
|
||||
});
|
||||
}
|
||||
if (replyToMessageIdForPayload && !hasReplied) {
|
||||
if (replyToMessageId && !hasReplied) {
|
||||
hasReplied = true;
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user