Telegram-Mini-Apps / telegram-apps

Made from scratch TypeScript packages, examples and documentation you will surely need to start developing on Telegram Mini Apps.
https://docs.telegram-mini-apps.com/
MIT License
735 stars 204 forks source link

[Bug]: sdk version after update to new package name is 7.2 #395

Closed kirill-dev-pro closed 4 months ago

kirill-dev-pro commented 4 months ago

Telegram Application

Other

Describe the Bug

I just updated sdk from @tma.js/sdk to new @telegram-apps/sdk version 1.0.1 and getting error

Error: Method "web_app_setup_swipe_behavior" is unsupported in Mini Apps version 7.2

To Reproduce

Steps to reproduce the behavior:

  1. npm i @telegram-apps/sdk
  2. use swipeDebaviour.disableVerticalSwipe()
  3. go to debug console
  4. See error

Expected Behavior

No errors

heyqbnk commented 4 months ago

Your Telegram client is not supporting this feature. Consider updating or wait for a new client release

kirill-dev-pro commented 4 months ago

Thanks, I was actually using mocked environment in the ordinary browser, and copied it from here https://docs.telegram-mini-apps.com/packages/telegram-apps-sdk/environment Didn't looked what actual values are there