Interface AddPollOption

Adds an option to a poll. Request type for Tdjson#addPollOption.

interface AddPollOption {
    @type: "addPollOption";
    chat_id: number;
    message_id: number;
    option: InputPollOption;
}

Properties

@type: "addPollOption"
chat_id: number

Identifier of the chat to which the poll belongs.

message_id: number

Identifier of the message containing the poll. Use messagePoll.can_add_option to check whether an option can be added.

The new option.