umbot - v2.0.1
    Preparing search index...

    Interface ITelegramResult

    Интерфейс результата запроса к API Telegram

    const response: ITelegramResult = {
    ok: true,
    result: {
    message_id: 123,
    from: {
    id: 123456789,
    is_bot: false,
    first_name: "John",
    username: "johndoe"
    },
    chat: {
    id: 123456789,
    first_name: "John",
    last_name: "Doe",
    username: "johndoe",
    type: "private"
    },
    date: 1234567890,
    text: "Hello, world!"
    }
    };

    // Пример ошибки
    const errorResponse: ITelegramResult = {
    ok: false,
    result: null,
    error_code: 400,
    description: "Bad Request"
    };
    interface ITelegramResult {
        ok: boolean;
        result: ITelegramResultContent;
        error_code?: number;
        description?: string;
    }
    Index

    Properties

    ok: boolean

    Статус выполнения запроса

    Содержимое результата

    error_code?: number

    Код ошибки

    description?: string

    Описание ошибки