Telegram-user: add poll hint for agents

This commit is contained in:
Muhammed Mukhthar CM 2026-01-23 10:27:54 +00:00
parent e1a2a1b9b6
commit 8bc17b39eb

View File

@ -158,6 +158,11 @@ export const telegramUserPlugin: ChannelPlugin<ResolvedTelegramUserAccount> = {
return ["poll"]; return ["poll"];
}, },
}, },
agentPrompt: {
messageToolHints: () => [
"Telegram user polls only work in groups/channels (DM polls return MEDIA_INVALID). Use the group id for polls.",
],
},
outbound: { outbound: {
deliveryMode: "direct", deliveryMode: "direct",
chunker: (text, limit) => chunker: (text, limit) =>