📄 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:
2026-09-27 12:16:51 +03:00
parent 00f734592c
commit f83028b105
3 changed files with 119 additions and 251 deletions
+5 -8
View File
@@ -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 {