GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kolirt/vue-telegram-mini-app: 📱 Vue 3 telegram mini app package

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
lib
lib
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.cjs
.eslintrc.cjs
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
env.d.ts
env.d.ts
 
 
index.html
index.html
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Vue 3 telegram mini apps

Vue 3 telegram mini app package

npm peer dependency version npm bundle size npm-version licence

Structure

  • Getting started
    • Installation
    • Setup
  • Telegram Mini Apps API implementation status
    • window.Telegram.WebApp
  • Faq
  • License
  • Other projects
Buy Me A Coffee

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

  • initData
  • initDataUnsafe
  • version
  • platform
  • colorScheme
  • themeParams
  • isExpanded
  • viewportHeight
  • viewportStableHeight
  • headerColor
  • backgroundColor
  • isClosingConfirmationEnabled
  • isVerticalSwipesEnabled
  • BackButton
    • isVisible
    • BackButton.onClick
    • BackButton.offClick
    • BackButton.show
    • BackButton.hide
  • MainButton
  • SettingsButton
  • HapticFeedback
    • HapticFeedback.impactOccurred
    • HapticFeedback.notificationOccurred
    • HapticFeedback.selectionChanged
  • CloudStorage
    • CloudStorage.setItem
    • CloudStorage.getItem
    • CloudStorage.getItems
    • CloudStorage.removeItem
    • CloudStorage.removeItems
    • CloudStorage.getKeys
  • BiometricManager
  • isVersionAtLeast
  • setHeaderColor(color)
  • setBackgroundColor(color)
  • enableClosingConfirmation()
  • disableClosingConfirmation()
  • enableVerticalSwipes()
  • disableVerticalSwipes()
  • onEvent(eventType, eventHandler)
  • 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])
  • ready()
  • expand()
  • close()

FAQ

Check closed issues with FAQ label to get answers for most asked questions

License

MIT

Other projects

Check out my other projects on my GitHub profile

About

📱 Vue 3 telegram mini app package

Topics

mini-apptelegram-mini-apptmavuevue-packagesvue-plugin

Resources

Readme
MIT license
Activity

Stars

10 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.