#20511: fix: register poll action gate for Telegram adapter (#17528)
size: XS
Cluster:
Telegram Poll Action Enhancements
The Telegram message action adapter was missing the poll action gate and handler. Users with polls enabled in their Telegram action config could not create polls through the agent.
- Add `polls` field to `TelegramActionConfig` type
- Register `poll` in `listActions` when `gate("polls")` is true
- Add poll action handler using `sendPollTelegram`
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Added the missing `polls` field to `TelegramActionConfig` and registered the poll action gate in the Telegram message adapter, enabling users to create polls when configured. The implementation follows the same pattern used for other Telegram actions like `sticker` and `createForumTopic`, and correctly uses the existing `sendPollTelegram` function.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The changes are minimal and follow established patterns in the codebase. The implementation correctly adds the missing poll action gate registration, uses existing infrastructure (`sendPollTelegram`), and matches the implementation pattern used for other Telegram actions like stickers and forum topics. The type definition is consistent with Discord's `DiscordActionConfig`.
- No files require special attention
<sub>Last reviewed commit: d402679</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#22489: fix(telegram): wire up poll action in dispatch
by pierreeurope · 2026-02-21
87.8%
#17894: fix(telegram): add missing poll action gate with input validation
by PlayerGhost · 2026-02-16
86.5%
#17441: feat(telegram): add poll action support
by iacosta3994 · 2026-02-15
86.2%
#17723: Telegram actions: let poll fall back to core sender
by clzoc · 2026-02-16
85.9%
#22690: fix: wire up Telegram poll action in provider dispatch
by sleitor · 2026-02-21
84.7%
#17357: feat(telegram): implement telegram poll action,persistent answer ro...
by akyourowngames · 2026-02-15
78.1%
#3186: fix(telegram): sanitize update offset + lock polling
by daxiong888 · 2026-01-28
77.6%
#11920: Telegram: create forum topics via message tool (thread-create)
by larsderidder · 2026-02-08
76.6%
#12950: feat: add Telegram pin/unpin message support
by alex-muradov · 2026-02-09
75.1%
#14224: feat(telegram): add member-info action to get chat administrators
by ivan-andreyev · 2026-02-11
74.8%