api.setPollAnswer()
Changes the user answer to a poll. A poll in quiz mode can be answered only once
Parameters
SetPollAnswerParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Identifier of the chat to which the poll belongs |
messageId | number | Identifier of the message containing the poll |
optionIds | number[] | 0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers |