📄 Lectures: открытие + скачивание через Telegram API
- api.ts: LectureListItem обновлён (title, file_url, level_code, lecture_language) - LecturesPage.tsx: открытие через Telegram.WebApp.openLink, скачивание через Telegram.WebApp.downloadFile - telegram.d.ts: типы openLink, openTelegramLink, downloadFile
This commit is contained in:
+5
-8
@@ -1358,17 +1358,14 @@ export const getWrongBecause = (): Promise<{ items: WrongBecauseItem[] }> =>
|
||||
|
||||
export interface LectureListItem {
|
||||
id: number;
|
||||
title_pl: string;
|
||||
title_ru: string;
|
||||
title_uk: string;
|
||||
title_en: string;
|
||||
description_pl: string;
|
||||
description_ru: string;
|
||||
description_uk: string;
|
||||
description_en: string;
|
||||
level_code: string;
|
||||
lecture_language: string;
|
||||
title: string;
|
||||
file_type: string;
|
||||
file_size_kb: number;
|
||||
file_url: string;
|
||||
order_number: number;
|
||||
created_at: string | null;
|
||||
}
|
||||
|
||||
export interface LecturesListResponse {
|
||||
|
||||
Reference in New Issue
Block a user