MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / buildImMessageCreateRequest

Function buildImMessageCreateRequest

scripts/feishu/smoke.ts:947–960  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

945}
946
947function buildImMessageCreateRequest(chatId: string): FeishuApiRequest {
948 return {
949 method: "POST",
950 path: "/open-apis/im/v1/messages",
951 query: {
952 receive_id_type: "chat_id",
953 },
954 body: {
955 receive_id: chatId,
956 msg_type: "text",
957 content: JSON.stringify({ text: "AgentSpace Feishu smoke" }),
958 },
959 };
960}
961
962function buildDocMetadataRequest(docToken: string): FeishuApiRequest {
963 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected