send_poll
Create and send Telegram polls with configurable options: anonymous voting, multiple choice, quiz mode, shuffled answers, and auto-close.
Instructions
Создать и отправить опрос.
Args: options: 2-10 вариантов ответа. anonymous: голоса без видимости кто как голосовал. multiple_choice: можно выбрать несколько вариантов. quiz: режим викторины (один правильный ответ + объяснение). correct_option_index: индекс правильного варианта (для quiz=True). explanation: пояснение, показываемое после голосования (quiz). close_period_seconds: автозакрытие через N секунд (5-600 на момент API layer 215). close_unix: автозакрытие на UNIX-таймстамп. revoting_disabled: True — нельзя сменить голос (для викторин). shuffle_answers: True — порядок вариантов рандомизируется на каждом устройстве.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| quiz | No | ||
| silent | No | ||
| options | Yes | ||
| question | Yes | ||
| anonymous | No | ||
| close_unix | No | ||
| explanation | No | ||
| multiple_choice | No | ||
| shuffle_answers | No | ||
| revoting_disabled | No | ||
| close_period_seconds | No | ||
| correct_option_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||