mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:14:31 +00:00
fix(slack): extract text and media from forwarded message attachments
This commit is contained in:
committed by
Peter Steinberger
parent
4928717b92
commit
b57d29d833
@@ -8,6 +8,26 @@ export type SlackFile = {
|
||||
url_private_download?: string;
|
||||
};
|
||||
|
||||
export type SlackAttachment = {
|
||||
fallback?: string;
|
||||
text?: string;
|
||||
pretext?: string;
|
||||
author_name?: string;
|
||||
author_id?: string;
|
||||
from_url?: string;
|
||||
ts?: string;
|
||||
channel_name?: string;
|
||||
channel_id?: string;
|
||||
is_msg_unfurl?: boolean;
|
||||
is_share?: boolean;
|
||||
image_url?: string;
|
||||
image_width?: number;
|
||||
image_height?: number;
|
||||
thumb_url?: string;
|
||||
files?: SlackFile[];
|
||||
message_blocks?: unknown[];
|
||||
};
|
||||
|
||||
export type SlackMessageEvent = {
|
||||
type: "message";
|
||||
user?: string;
|
||||
@@ -22,6 +42,7 @@ export type SlackMessageEvent = {
|
||||
channel: string;
|
||||
channel_type?: "im" | "mpim" | "channel" | "group";
|
||||
files?: SlackFile[];
|
||||
attachments?: SlackAttachment[];
|
||||
};
|
||||
|
||||
export type SlackAppMentionEvent = {
|
||||
@@ -36,4 +57,5 @@ export type SlackAppMentionEvent = {
|
||||
parent_user_id?: string;
|
||||
channel: string;
|
||||
channel_type?: "im" | "mpim" | "channel" | "group";
|
||||
attachments?: SlackAttachment[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user