Telegram-user: expose poll action

This commit is contained in:
Muhammed Mukhthar CM 2026-01-23 10:11:09 +00:00
parent d84d44643a
commit e1a2a1b9b6

View File

@ -70,6 +70,7 @@ export const telegramUserPlugin: ChannelPlugin<ResolvedTelegramUserAccount> = {
}, },
capabilities: { capabilities: {
chatTypes: ["direct", "group"], chatTypes: ["direct", "group"],
polls: true,
reactions: false, reactions: false,
threads: false, threads: false,
media: true, media: true,
@ -151,6 +152,12 @@ export const telegramUserPlugin: ChannelPlugin<ResolvedTelegramUserAccount> = {
accountId, accountId,
}), }),
}, },
actions: {
listActions: ({ cfg }) => {
if (!cfg.channels?.["telegram-user"]) return [];
return ["poll"];
},
},
outbound: { outbound: {
deliveryMode: "direct", deliveryMode: "direct",
chunker: (text, limit) => chunker: (text, limit) =>