messages.sendVote
Vote in a poll
Vote in a [poll](https://core.telegram.org/constructor/poll.md)
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The chat where the poll was sent |
msg_id | int | Yes | The message ID of the poll |
options | Vector<bytes> | Yes | The options that were chosen |
Responses
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
- 400 · MESSAGE_POLL_CLOSED — Poll closed.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · OPTIONS_TOO_MUCH — Too many options provided.
- 400 · OPTION_INVALID — Invalid option selected.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.
- 406 · POLL_COUNTRY_RESTRICTED — Users from the current user's country cannot vote in this [country-restricted poll »](https://core.telegram.org/api/poll.md#country-restricted-polls).
- 406 · POLL_MEMBER_RESTRICTED — Only channel subscribers can vote in this poll.
- 400 · REVOTE_NOT_ALLOWED — You cannot change your vote.