umbot - v2.0.1
    Preparing search index...

    Interface ITelegramPoll

    Интерфейс с информацией об опросе

    const poll: ITelegramPoll = {
    id: "123456789",
    question: "What is your favorite color?",
    options: [
    { text: "Red", voter_count: 5 },
    { text: "Blue", voter_count: 3 },
    { text: "Green", voter_count: 2 }
    ],
    total_voter_count: 10,
    is_closed: false,
    is_anonymous: true,
    type: "regular",
    allows_multiple_answers: false
    };
    interface ITelegramPoll {
        id: string;
        question: string;
        options: { text: string; voter_count: number }[];
        total_voter_count: number;
        is_closed: boolean;
        is_anonymous: boolean;
        type: TTelegramQuestionType;
        allows_multiple_answers: boolean;
        correct_option_id: number;
    }
    Index

    Properties

    id: string

    Уникальный идентификатор опроса

    question: string

    Вопрос опроса

    options: { text: string; voter_count: number }[]

    Варианты ответов

    Type declaration

    • text: string

      Текст варианта ответа

    • voter_count: number

      Количество проголосовавших за этот вариант

    total_voter_count: number

    Общее количество проголосовавших

    is_closed: boolean

    Флаг закрытия опроса

    is_anonymous: boolean

    Флаг анонимности опроса

    Тип опроса

    allows_multiple_answers: boolean

    Разрешение множественного выбора

    correct_option_id: number

    ID правильного варианта ответа