Optional
file
file?: { media_id: string }
Optional
image
image?: { base64: string; md5: string }
Type declaration
base64: string
md5: string
Optional
markdown
markdown?: { content: string }
Optional
news
news?: {
articles: {
description: string;
picurl?: string;
title: string;
url: string;
}[];
}
Optional
template_card
template_card?: {
card_action?: {
appid?: string;
pagepath?: string;
type: number;
url?: string;
};
card_image?: { aspect_ratio?: number; url: string };
card_type: "news_notice" | "text_notice";
emphasis_content?: { desc: string; title: string };
horizontal_content_list?: {
keyname: string;
media_id?: string;
type?: number;
url?: string;
value: string;
}[];
image_text_area?: {
appid?: string;
desc?: string;
image_url?: string;
title?: string;
type?: number;
url?: string;
};
jump_list: {
appid?: string;
pagepath?: string;
title: string;
type: number;
url?: string;
}[];
main_title: { desc?: string; title: string };
quote_area?: {
appid: string;
pagepath: string;
quote_text: string;
title: string;
type: number;
url: string;
};
source?: { desc?: string; desc_color?: number; icon_url?: string };
sub_title_text: string;
vertical_content_list?: { desc?: string; title: string };
}
Type declaration
Optional
card_action?: { appid?: string; pagepath?: string; type: number; url?: string }
Optional
card_image?: { aspect_ratio?: number; url: string }
card_type: "news_notice" | "text_notice"
Optional
emphasis_content?: { desc: string; title: string }
Optional
horizontal_content_list?: {
keyname: string;
media_id?: string;
type?: number;
url?: string;
value: string;
}[]
Optional
image_text_area?: {
appid?: string;
desc?: string;
image_url?: string;
title?: string;
type?: number;
url?: string;
}
jump_list: { appid?: string; pagepath?: string; title: string; type: number; url?: string }[]
main_title: { desc?: string; title: string }
Optional
desc?: string
title: string
Optional
quote_area?: {
appid: string;
pagepath: string;
quote_text: string;
title: string;
type: number;
url: string;
}
Optional
source?: { desc?: string; desc_color?: number; icon_url?: string }
sub_title_text: string
Optional
vertical_content_list?: { desc?: string; title: string }
Optional
text
text?: {
content: string;
mentioned_list?: string[];
mentioned_mobile_list?: string[];
}
通过文件上传接口返回的文件id