feat: режим отправки медиа через инлайн

This commit is contained in:
2026-10-11 00:31:45 +04:00
parent 2a41ac9423
commit 4d588c89fb
10 changed files with 303 additions and 13 deletions
+3 -3
View File
@@ -2,13 +2,13 @@
import { onMount } from 'svelte'
import { jwt, isAuthed } from './stores/auth.js'
import { api } from './lib/api.js'
import { initData, applyTheme, isAttachmentMode } from './lib/telegram.js'
import { initData, applyTheme, isAttachmentMode, isInlineMode } from './lib/telegram.js'
import MediaPage from './pages/MediaPage.svelte'
import CollectionsPage from './pages/CollectionsPage.svelte'
import SendPage from './pages/SendPage.svelte'
// Режим: пользователь хочет отправить медиа в чат (Mini App открыта через «Прикрепить»)
const sendMode = isAttachmentMode()
// Режим отправки: attachment menu (query_id) или inline кнопка (?mode=inline)
const sendMode = isAttachmentMode() || isInlineMode()
let tab = 'media' // 'media' | 'collections'
let authError = null