- Notifications
You must be signed in to change notification settings - Fork12
twa-dev/types
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Types forTelegram Web Apps (TWA) SDK.
npm i @twa-dev/types
import{Telegram}from"@twa-dev/types";declare global{interfaceWindow{Telegram:Telegram;}}window.Telegram.WebApp.HapticFeedback.notificationOccurred("success");
WebAppUser
WebAppChat
WebAppInitData
ThemeParams
HapticFeedback
BackButton
BottomButton
MainButton
SecondaryButton
SettingsButton
EventNames
EventParams
PopupParams
PopupButton
WebApp
ScanQrPopupParams
CloudStorage
BiometricManager
BiometricRequestAccessParams
BiometricAuthenticateParams
StoryShareParams
StoryWidgetLink
Accelerometer
DeviceOrientation
DeviceOrientationStartParams
Gyroscope
GyroscopeStartParams
LocationManager
LocationData
SafeAreaInset
ContentSafeAreaInset
EmojiStatusParams
DownloadFileParams
Platforms
About
Types for TWA SDK