mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 20:40:45 +00:00
fix: align channel adapters with plugin sdk
This commit is contained in:
@@ -65,10 +65,11 @@ const feishuOnboarding = {
|
||||
},
|
||||
},
|
||||
}),
|
||||
promptAllowFrom: async (cfg, prompter) =>
|
||||
(await loadFeishuChannelRuntime()).feishuOnboardingAdapter.dmPolicy!.promptAllowFrom({
|
||||
promptAllowFrom: async ({ cfg, prompter, accountId }) =>
|
||||
(await loadFeishuChannelRuntime()).feishuOnboardingAdapter.dmPolicy!.promptAllowFrom!({
|
||||
cfg,
|
||||
prompter,
|
||||
accountId,
|
||||
}),
|
||||
},
|
||||
disable: (cfg) => ({
|
||||
|
||||
@@ -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