mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 19:20:21 +00:00
Plugin SDK: require unified message discovery
This commit is contained in:
@@ -150,7 +150,7 @@ const createDiscordPollPluginRegistration = () => ({
|
||||
id: "discord",
|
||||
label: "Discord",
|
||||
actions: {
|
||||
listActions: () => ["poll"],
|
||||
describeMessageTool: () => ({ actions: ["poll"] }),
|
||||
handleAction: (async ({ action, params, cfg, accountId }: ChannelActionParams) => {
|
||||
return await handleDiscordAction(
|
||||
{ action, to: params.to, accountId: accountId ?? undefined },
|
||||
@@ -168,7 +168,7 @@ const createTelegramSendPluginRegistration = () => ({
|
||||
id: "telegram",
|
||||
label: "Telegram",
|
||||
actions: {
|
||||
listActions: () => ["send"],
|
||||
describeMessageTool: () => ({ actions: ["send"] }),
|
||||
handleAction: (async ({ action, params, cfg, accountId }: ChannelActionParams) => {
|
||||
return await handleTelegramAction(
|
||||
{ action, to: params.to, accountId: accountId ?? undefined },
|
||||
@@ -186,7 +186,7 @@ const createTelegramPollPluginRegistration = () => ({
|
||||
id: "telegram",
|
||||
label: "Telegram",
|
||||
actions: {
|
||||
listActions: () => ["poll"],
|
||||
describeMessageTool: () => ({ actions: ["poll"] }),
|
||||
handleAction: (async ({ action, params, cfg, accountId }: ChannelActionParams) => {
|
||||
return await handleTelegramAction(
|
||||
{ action, to: params.to, accountId: accountId ?? undefined },
|
||||
|
||||
Reference in New Issue
Block a user