# Get Poll Answer Voters

> Fetch users who voted for a specific poll answer and iterate over them.

- ID: `get_poll_answer_voters`
- Type: Loop
- Category: [Messages](https://inventor.bot/docs/reference/blocks/messages.md)

- Loop block: write `for item := range get_poll_answer_voters(Args{...}) { ... }` and read the current item's outputs from `item`. See loops.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel containing the poll message. |  |
| `message_id` | yes | ID of the poll message. |  |
| `answer_id` | yes | ID of the answer to get voters for. | e.g. `"1"` |
| `body` |  | Blocks to run for each voter. | blocks: `func() { ... }` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `iteration_number` | Current iteration (1-based). | e.g. `"1"` |
| `total_iterations` | Total number of voters. | e.g. `"10"` |
| `user_id` | ID of the voter. | e.g. `"123456789012345678"` |
| `username` | Username of the voter. |  |
| `global_name` | Display name of the voter. |  |
| `avatar_url` | Avatar URL of the voter. |  |
| `is_bot` | Whether the voter is a bot. | e.g. `"false"` |

**Example**

```go
for pollAnswerVoter := range get_poll_answer_voters(Args{
	channel_id: trigger.channel_id,
	message_id: trigger.message_id,
	answer_id:  1,
}) {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "User ID: " + pollAnswerVoter.user_id,
	})
}
```