Spaces:
Runtime error

bot / src /global.d.ts
lasource87's picture
Upload 15 files
cd86722 verified
Raw History Blame Contribute Delete
489 Bytes
interface Window {
Telegram?: {
WebApp: {
ready: () => void;
expand: () => void;
close: () => void;
MainButton: {
text: string;
color: string;
textColor: string;
isVisible: boolean;
isActive: boolean;
show: () => void;
hide: () => void;
onClick: (callback: () => void) => void;
};
openTelegramLink: (url: string) => void;
setHeaderColor: (color: string) => void;
};
};
}