mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
22 lines
437 B
TypeScript
22 lines
437 B
TypeScript
/// <reference types="vite/client" />
|
||
|
||
interface TelegramWebApp {
|
||
initData: string; // Сырая строка с параметрами и хешем
|
||
initDataUnsafe: {
|
||
user?: {
|
||
id: number;
|
||
first_name: string;
|
||
last_name?: string;
|
||
username?: string;
|
||
language_code?: string;
|
||
};
|
||
};
|
||
close: () => void;
|
||
expand: () => void;
|
||
}
|
||
|
||
interface Window {
|
||
Telegram?: {
|
||
WebApp: TelegramWebApp;
|
||
};
|
||
} |