Send a poll
send_pollSend a poll to a Telegram chat, enabling quizzes, multiple choice, anonymous votes, and auto-close timing.
Instructions
Send a poll. For a quiz, set quiz: true and correctAnswerIndex (0-based). Use closePeriod (seconds) or closeDate (unix seconds) to auto-close.
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": {
"peer": "<peer>",
"question": "<question>",
"answers": "<answers>"
},
"name": "send_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| quiz | No | ||
| answers | Yes | ||
| replyTo | No | ||
| question | Yes | ||
| solution | No | Explanation shown after a quiz answer | |
| accountId | No | ||
| anonymous | No | ||
| closeDate | No | ||
| closePeriod | No | ||
| multipleChoice | No | ||
| correctAnswerIndex | No |