Skip to content

Releases: deptyped/vue-telegram

0.10.0

03 Mar 06:22

Choose a tag to compare

What's Changed

  • Added support for Bot API 9.5

Full Changelog: 0.9.0...0.10.0

0.9.0

31 Jul 19:31

Choose a tag to compare

What's Changed

  • Added support for Bot API 9.1
  • Added FullscreenViewport component
  • Added SecondaryButton component
  • Introduced a new API that enforces runtime feature support checks to prevent errors on clients with outdated Bot API support:
const deviceStorage = useDeviceStorage()

// ❌ Type error:
// 'getItem' may not be available — DeviceStorage was introduced in Bot API 9.0
deviceStorage.getItem('token')

if (deviceStorage.isVersionAtLeast('9.0')) {
  // ✅ Safe to use
  deviceStorage.getItem('token')
}

You can opt out of these checks or define a minimum required Bot API version, which disables warnings for features introduced up to that version. See Version Check in the docs for more.

  • Added support for async method calls, enabling cleaner control flow:
const miniApp = useMiniApp()
const qrScanner = useQrScanner()
const popup = usePopup()

const url = await qrScanner.show({ text: 'Scan URL' })
const ok = await popup.showConfirm(`Open ${url}?`)
if (ok) {
  miniApp.openLink(url)
}

⚠️ Breaking changes coming

The old API is still available but marked as deprecated and will be removed in upcoming releases.

0.8.0

31 Jul 17:21

Choose a tag to compare

What's Changed

Full Changelog: 0.7.0...0.8.0

0.7.0

25 Jul 21:54

Choose a tag to compare

What's Changed

  • Added support for Bot API 7.7 in #28

  • Added isFeatureSupported helper to useWebApp in #32

    Usage example:

    <script lang="ts" setup>
    import { useWebApp, useWebAppViewport } from 'vue-tg'
    
    const { isFeatureSupported } = useWebApp()
    const { disableVerticalSwipes } = useWebAppViewport()
    
    if (isFeatureSupported('DisableVerticalSwipes')) {
      disableVerticalSwipes()
    } else {
      // some kind of fallback or alert
    }
    </script>

    ClosingConfirmation, CloudStorage, RequestWriteAccess, RequestContact, SettingsButton, BiometricManager, DisableVerticalSwipes features are available to check.

  • Improved types for isPlatform helper, added type hints for all official Telegram apps.

  • Added Nuxt 3 setup to docs by @IAMSDR in #24

  • Breaking Change: Removed default export for plugin, use named import for VueTelegramPlugin:

    -import VueTelegramPlugin from 'vue-tg'
    +import { VueTelegramPlugin } from 'vue-tg'

Full Changelog: 0.6.1...0.7.0

0.6.1

26 Apr 06:46

Choose a tag to compare

Full Changelog: 0.6.0...0.6.1

0.6.0

05 Apr 00:50

Choose a tag to compare

What's Changed

  • Add ability to manage event subscriptions manually by @hopleus in #22

Full Changelog: 0.5.0...0.6.0

0.5.0

02 Apr 02:07
eaa8a19

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.0...0.5.0

0.4.0

19 Feb 20:50

Choose a tag to compare

What's Changed

Full Changelog: 0.3.0...0.4.0

0.3.0

06 Feb 13:08

Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.3.0

0.2.0

10 Jan 19:17

Choose a tag to compare