Files
2026-07-13 13:34:48 +08:00

34 lines
974 B
TypeScript

import { IntegrationDefinitionProps, messages } from '@botpress/sdk'
const _wechatMessageChannels = {
text: {
...messages.defaults.text,
schema: messages.defaults.text.schema.extend({
text: messages.defaults.text.schema.shape.text
.max(4096)
.describe('The text content of the WeChat message (Limit 4096 characters)'),
}),
},
image: messages.defaults.image,
video: messages.defaults.video,
}
export const channels = {
channel: {
title: 'Channel',
description: 'WeChat Channel',
messages: _wechatMessageChannels,
message: {
tags: {
id: { title: 'ID', description: 'The message ID' },
chatId: { title: 'Chat ID', description: 'The message chat ID' },
},
},
conversation: {
tags: {
id: { title: 'ID', description: "The WeChat conversation ID (This is also the Recipient's UserId)" },
},
},
},
} as const satisfies IntegrationDefinitionProps['channels']