UNPKG

telegram-miniapp-tools

Version:
39 lines (38 loc) 996 B
import { InitData } from "./init-data.js"; import { Platform, Version } from "./telegram-web-app.js"; import { ParsedThemeParams } from "./theme-params.js"; export interface LaunchParams { /** * True if Mini App is currently launched in inline mode. */ botInline?: boolean; /** * Current launch init data. Can be missing in case, application was launched via * KeyboardButton. */ initData?: InitData; /** * The same as initData but in initial, raw format. */ initDataRaw?: string; /** * Current Telegram application identifier. */ platform: Platform; /** * True if application is required to show the Settings Button. */ showSettings?: boolean; /** * Start parameter passed in the application link. */ startParam?: string; /** * Mini App palette settings. */ themeParams: ParsedThemeParams; /** * Current Mini Apps version. */ version: Version; }