Interface SetPollAnswer

Changes the user answer to a poll. Request type for Tdjson#setPollAnswer.

interface SetPollAnswer {
    @type: "setPollAnswer";
    chat_id: number;
    message_id: number;
    option_ids: number[];
}

Properties

@type: "setPollAnswer"
chat_id: number

Identifier of the chat to which the poll belongs.

message_id: number

Identifier of the message containing the poll.

option_ids: number[]

0-based identifiers of answer options chosen by the user. The user can choose more than 1 answer option only if the poll allows multiple answers.