@kolirt/vue-telegram-mini-app
v1.0.1
Published
Vue 3 telegram mini app package
Downloads
38
Maintainers
Readme
Table of Contents
Getting started
Installation
npm install --save @kolirt/vue-telegram-mini-app
yarn add @kolirt/vue-telegram-mini-app
Setup
import { createApp } from 'vue'
import { createTelegramMiniApp } from '@kolirt/vue-telegram-mini-app'
const app = createApp({ ... })
app.use(createTelegramMiniApp({
alwaysExpand: true,
closingConfirmation: true
}))
app.mount('#app')
Telegram Mini Apps API implementation status
window.Telegram.WebApp
- [X] initData
- [ ] initDataUnsafe
- [X] version
- [X] platform
- [X] colorScheme
- [ ] themeParams
- [X] isExpanded
- [X] viewportHeight
- [X] viewportStableHeight
- [X] headerColor
- [X] backgroundColor
- [X] isClosingConfirmationEnabled
- [X] isVerticalSwipesEnabled
- [ ] BackButton
- [ ] isVisible
- [X] BackButton.onClick
- [X] BackButton.offClick
- [X] BackButton.show
- [X] BackButton.hide
- [ ] MainButton
- [ ] SettingsButton
- [X] HapticFeedback
- [X] HapticFeedback.impactOccurred
- [X] HapticFeedback.notificationOccurred
- [X] HapticFeedback.selectionChanged
- [X] CloudStorage
- [X] CloudStorage.setItem
- [X] CloudStorage.getItem
- [X] CloudStorage.getItems
- [X] CloudStorage.removeItem
- [X] CloudStorage.removeItems
- [X] CloudStorage.getKeys
- [ ] BiometricManager
- [X] isVersionAtLeast
- [X] setHeaderColor(color)
- [X] setBackgroundColor(color)
- [X] enableClosingConfirmation()
- [X] disableClosingConfirmation()
- [X] enableVerticalSwipes()
- [X] disableVerticalSwipes()
- [X] onEvent(eventType, eventHandler)
- [X] offEvent(eventType, eventHandler)
- [ ] sendData(data)
- [ ] switchInlineQuery(query[, choose_chat_types])
- [ ] openLink(url[, options])
- [ ] openTelegramLink(url)
- [ ] openInvoice(url[, callback])
- [ ] showPopup(params[, callback])
- [ ] showAlert(message[, callback])
- [ ] showConfirm(message[, callback])
- [ ] showScanQrPopup(params[, callback])
- [ ] closeScanQrPopup()
- [ ] readTextFromClipboard([callback])
- [ ] requestWriteAccess([callback])
- [ ] requestContact([callback])
- [X] ready()
- [X] expand()
- [X] close()
FAQ
Check closed issues with FAQ
label to get answers for most asked
questions
License
Other projects
Check out my other projects on my GitHub profile