deptyped / vue-telegram

Telegram integration for Vue

Home Page:https://vue-tg.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-tg - Telegram integration for Vue

docs version downloads

A package for seamless integration of Telegram Mini Apps and Telegram Widgets features.

Usage Example

<script lang="ts" setup>
import { MainButton, useWebAppPopup } from 'vue-tg'

const { showAlert } = useWebAppPopup()
</script>

<template>
  <MainButton text="Open alert" @click="() => showAlert('Hello!')" />
</template>

Installation

Install package:

npm i vue-tg

To connect your Mini App to the Telegram client, place the script telegram-web-app.js in the <head> tag before any other scripts, using this code:

<script src="https://telegram.org/js/telegram-web-app.js"></script>

Documentation

Instructions

Widgets

Components

Mini Apps

Components

Composables

About

Telegram integration for Vue

https://vue-tg.pages.dev

License:MIT License


Languages

Language:TypeScript 75.5%Language:Vue 24.5%