← Back to library

Telegram 投票自动化落地:sendPoll 能力上线后的安全用法(PR #16209)

问题/场景:需要在群里自动发起投票(排期、决策、值班)但希望可追溯、可回滚。前置条件:Telegram 通道已连通且机器人有发言权限。实施步骤:先灰度到测试群、固定 poll 字段模板、再上线生产群并记录 messageId。关键配置:`pollQuestion`、`pollOption[]`、`pollDurationHours`、`pollMulti`。验证:投票可正常发出并在到期后自动结束。风险:问题文案或选项长度超限会发送失败。

GITHUBDiscovered 2026-02-15Author anand-vijayan
Prerequisites
  • Telegram channel is configured and bot can send messages in target chat.
  • You can test poll payloads in a non-production chat first.
Steps
  1. Upgrade OpenClaw to a version that includes PR #16209 and verify gateway health.
  2. Prepare a reusable poll template (question/options/duration/multi-select) for your team workflow.
  3. Send the poll in a test chat, verify rendering and option selection behavior.
  4. Roll out to production group and archive poll message IDs for audit and follow-up.
Commands
openclaw gateway status
openclaw gateway restart
openclaw help
Verify

Polls can be sent repeatedly with expected options/duration, and participants can vote without delivery errors.

Caveats
  • Telegram-specific limits (question/options length/count) may reject malformed payloads(需验证).
  • For critical decisions, keep manual fallback when bot permissions or API quotas fluctuate.
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post