messages.sendVote
Vote in a poll
Vote in a [poll](https://core.telegram.org/constructor/poll.md)
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The chat where the poll was sent |
msg_id | int | Ja | The message ID of the poll |
options | Vector<bytes> | Ja | The options that were chosen |
Antworten
Updates
MTProto RPC
- 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
- 400 · CHANNEL_PRIVATE — Du bist diesem Kanal/dieser Supergruppe nicht beigetreten.
- 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
- 400 · MESSAGE_POLL_CLOSED — Umfrage geschlossen.
- 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
- 400 · OPTIONS_TOO_MUCH – Zu viele Optionen bereitgestellt.
- 400 · OPTION_INVALID – Ungültige Option ausgewählt.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 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 — Sie können Ihre Stimme nicht ändern.