Skip to content

Releases: DavisDmitry/telegram-webapps

Fix openInvoice method

29 Nov 21:48
26b98df
Compare
Choose a tag to compare

What's Changed

Full Changelog: 8.0.1...8.0.2

Fixes

27 Nov 13:24
fee5b2d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 8.0...8.0.1

November 17, 2024

21 Nov 14:33
bd70f52
Compare
Choose a tag to compare

What's Changed

Full-screen Mode

  • Mini Apps are now able to become full-screen in both portrait and landscape mode – allowing them to host more games, play widescreen media and support immersive user experiences.
  • Added the methods requestFullscreen and exitFullscreen to toggle full-screen mode.
  • Added the fields safeAreaInset and contentSafeAreaInset, allowing Mini Apps to ensure that their content properly respects the device's safe area margins.
  • Further added the fields isActive and isFullscreen to the class WebApp.
  • Added the events activated, deactivated, safeAreaChanged, contentSafeAreaChanged, fullscreenChanged and fullscreenFailed.

Homescreen Shortcuts

  • Mini Apps can now be accessed via direct shortcuts added to the home screen of mobile devices.
  • Added the method addToHomeScreen to create a shortcut for users to add to their home screens.
  • Added the method checkHomeScreenStatus to determine the status and support of the home screen shortcut for the Mini App on the current device.
  • Added the events homeScreenAdded and homeScreenChecked.

Emoji Status

  • Mini Apps can now prompt users to set their emoji status – or request access to later sync it automatically with in-game badges, third-party APIs and more.
  • Added the method setEmojiStatus to let users manually confirm a custom emoji as their new status via a native dialog.
  • Added the method requestEmojiStatusAccess for obtaining permission to later update a user's emoji status via the Bot API method setUserEmojiStatus.
  • Added the events emojiStatusSet, emojiStatusFailed and emojiStatusAccessRequested.

Media Sharing and File Downloads

  • Users can now share media directly from Mini Apps – sending referral codes, custom memes, artwork and more to any chat or posting them as a story.
  • Added the method shareMessage to share media from Mini Apps to Telegram chats. Also see PreparedInlineMessage.
  • Added the method downloadFile, introducing support for a native popup that prompts users to download files from the Mini App.
  • Added the events shareMessageSent, shareMessageFailed and fileDownloadRequested.

Geolocation Access

  • Mini Apps can now request geolocation access to users, allowing them to build virtually any location-based service, from games with dynamic points of interest to interactive maps for events.
  • Added the field LocationManager to the class WebApp.
  • Added the events locationManagerUpdated and locationRequested.

Device Motion Tracking

  • Mini Apps can now track detailed device motion data, allowing them to implement better productivity tools, immersive VR experiences and more.
  • Added the fields isOrientationLocked, Accelerometer, DeviceOrientation and Gyroscope to the class WebApp.
  • Added the methods lockOrientation and unlockOrientation to control the screen orientation.
  • Added the events accelerometerStarted, accelerometerStopped, accelerometerChanged, accelerometerFailed, deviceOrientationStarted, deviceOrientationStopped, deviceOrientationChanged, deviceOrientationFailed, gyroscopeStarted, gyroscopeStopped, gyroscopeChanged, gyroscopeFailed.

Full Changelog: 7.10...8.0

https://core.telegram.org/bots/webapps#november-17-2024

September 6, 2024

06 Sep 15:47
d935b6a
Compare
Choose a tag to compare

What's Changed

  • Added the field SecondaryButton to the class WebApp.
  • Added the event secondaryButtonClicked.
  • Renamed the class MainButton to the class BottomButton.
  • Added the field bottomBarColor and the method setBottomBarColor to the class WebApp.
  • Added the field bottom_bar_bg_color to the class ThemeParams.

Full Changelog: 7.8...7.10

https://core.telegram.org/bots/webapps#september-6-2024

July 31, 2024

02 Aug 13:04
69da206
Compare
Choose a tag to compare

What's Changed

  • Added the method shareToStory to the class WebApp.

Full Changelog: 7.7...7.8

https://core.telegram.org/bots/webapps#july-31-2024

July 7, 2024 Bot API update

07 Jul 11:51
0d79268
Compare
Choose a tag to compare

What's Changed

  • Added the field isVerticalSwipesEnabled and the methods enableVerticalSwipes, disableVerticalSwipes to the class WebApp.
  • Added the event scanQrPopupClosed.

Full Changelog: 7.6...7.7

https://core.telegram.org/bots/webapps#july-7-2024

July 1, 2024 bot API update

01 Jul 19:34
336c10b
Compare
Choose a tag to compare

7.2.1

19 Jun 10:39
2df15e3
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.2.0...7.2.1

👽️ Add typings for BOT API 7.2

07 Apr 11:40
252dd78
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.0.0...7.2.0

👽️ Add typings for Bot API 7.0

22 Jan 15:58
Compare
Choose a tag to compare

What's Changed

👽️ Add typings for BOT API 7.0

📝 Docs

  • Add pnpm package manager & transfer to devDeps by @NOCELL in #8

🐛 Fixes

  • fix typo in Telegram.WebApps.BackButton.isVisible by @spiky-s in #11

New Contributors

Full Changelog: 6.9.0...7.0.0