mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 12:30:22 +00:00
fix: align channel adapters with plugin sdk
This commit is contained in:
@@ -382,10 +382,10 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount> = {
|
||||
chunker: (text, limit) => getMatrixRuntime().channel.text.chunkMarkdownText(text, limit),
|
||||
chunkerMode: "markdown",
|
||||
textChunkLimit: 4000,
|
||||
sendText: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendText(params),
|
||||
sendText: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendText!(params),
|
||||
sendMedia: async (params) =>
|
||||
(await loadMatrixChannelRuntime()).matrixOutbound.sendMedia(params),
|
||||
sendPoll: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendPoll(params),
|
||||
(await loadMatrixChannelRuntime()).matrixOutbound.sendMedia!(params),
|
||||
sendPoll: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendPoll!(params),
|
||||
},
|
||||
status: {
|
||||
defaultRuntime: {
|
||||
|
||||
Reference in New Issue
Block a user