# End Poll

> Immediately end a poll on a message.

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel containing the poll message. |  |
| `message_id` | yes | ID of the poll message to end. |  |

**Example**

```go
end_poll(Args{channel_id: trigger.channel_id, message_id: trigger.message_id})
```