feat: режим отправки медиа через инлайн
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user