send_poll
Create a poll or quiz in a Telegram chat, supporting multiple choice, quiz mode with correct answer, and options like anonymous voting and auto-close.
Instructions
发起一个投票或测验。
Args: chat: 目标对话。 question: 问题。 options: 选项文字,2~10 个。 multiple_choice: 允许多选。 quiz: 测验模式(只有一个正确答案,必须给 correct_option)。 correct_option: 正确选项的下标(从 0 开始),仅测验模式使用。 solution: 测验模式下答错时显示的解析。 public_voters: 公开谁投了什么。 close_in_seconds: 多少秒后自动关闭,0 为不自动关闭。 reply_to: 回复某条消息。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat": "<chat>",
"question": "<question>",
"options": "<options>"
},
"name": "send_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| quiz | No | ||
| options | Yes | ||
| question | Yes | ||
| reply_to | No | ||
| solution | No | ||
| public_voters | No | ||
| correct_option | No | ||
| multiple_choice | No | ||
| close_in_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||