SDK icon indicating copy to clipboard operation
SDK copied to clipboard

npm package for TWA SDK

Results 23 SDK issues
Sort by recently updated
recently updated
newest added

Basically title. Although importing `import { type WebApp } from "@twa-dev/types";` works fine, but `import TwaSdk from '@twa-dev/sdk';` causes this error.

bug

Just started using the @twa-dev/sdk, and the first thing I see when tyring to test is ReferenceError: window is not defined so the error is not on my side, it...

Im building a tg mini app, i need to get userid of telegram so i can pass it in a function to fetch data. Fetching data works in server component...

The library fails to work with the Next.js framework ("next": "^12.1.6") while SSR. The issue is caused by the missing window object within the file node_modules/@twa-dev/sdk/dist/sdk.js, and it occurs at...

wontfix

Hi, after updating to version 7.8.0, the chat_instance field of the InitDataUsafe object returns a different id on different devices (the expected behavior before version 7.8.0 was always the only...

Reproduce: - Open package.json - Hover on `@twa-dev/sdk` in dependencies section

This is more of a feature request, but it would be nice if my TWAs had access to the native NFC api (on iPhone) so that I could invite a...

wontfix

in this url for example : https://t.me/mybot?startapp=bbId38341612 when open it with telegram desktop, WebApp.initDataUnsafe.start_param working fine and get bbId38341612 but when I want open that with iphone 13 , always...

TG Issue

Hello I call from server bot id message for share and send by WebApp.shareMessage. I close popup or send this message to user. One more time get id message and...

This issue was already discussed here and on StackOverflow, my problem is I want to start development of my Telegram mini App by using browser, it is simple more convenient...