mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:47:40 +00:00
fix(line): restore bot-message-context types
This commit is contained in:
@@ -6,7 +6,6 @@ import type {
|
|||||||
JoinEvent,
|
JoinEvent,
|
||||||
LeaveEvent,
|
LeaveEvent,
|
||||||
PostbackEvent,
|
PostbackEvent,
|
||||||
EventSource,
|
|
||||||
} from "@line/bot-sdk";
|
} from "@line/bot-sdk";
|
||||||
import type { OpenClawConfig } from "../config/config.js";
|
import type { OpenClawConfig } from "../config/config.js";
|
||||||
import type { RuntimeEnv } from "../runtime.js";
|
import type { RuntimeEnv } from "../runtime.js";
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ function extractMediaPlaceholder(message: MessageEvent["message"]): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LineRouteInfo = ReturnType<typeof resolveAgentRoute>;
|
type LineRouteInfo = ReturnType<typeof resolveAgentRoute>;
|
||||||
type LineSourceInfo = ReturnType<typeof getSourceInfo> & { peerId: string };
|
type LineSourceInfoWithPeerId = LineSourceInfo & { peerId: string };
|
||||||
|
|
||||||
function resolveLineConversationLabel(params: {
|
function resolveLineConversationLabel(params: {
|
||||||
isGroup: boolean;
|
isGroup: boolean;
|
||||||
@@ -213,7 +213,7 @@ async function finalizeLineInboundContext(params: {
|
|||||||
account: ResolvedLineAccount;
|
account: ResolvedLineAccount;
|
||||||
event: MessageEvent | PostbackEvent;
|
event: MessageEvent | PostbackEvent;
|
||||||
route: LineRouteInfo;
|
route: LineRouteInfo;
|
||||||
source: LineSourceInfo;
|
source: LineSourceInfoWithPeerId;
|
||||||
rawBody: string;
|
rawBody: string;
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
messageSid: string;
|
messageSid: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user