Telegram Application
Telegram for Android, Telegram for iOS, Telegram Web K, Telegram Web A, Telegram Desktop, Telegram for macOS
Describe the Bug
I have initialized react-sdk with init and mounted backbutton to make sure it worked
import { createRoot } from 'react-dom/client';
import './index.scss';
import App from './App.tsx';
import { init, backButton } from '@telegram-apps/sdk-react';
init();
backButton.mount();
createRoot(document.getElementById('root')!).render(<App />);
But still, pretty much all telegram methods like opening links, setting status, opening beometry dont work, even though im checking isAvailable() for all of them and it shows true. Im not getting any errors, these methods just dont work
Examples of calling:
onClick: async () => {
await setEmojiStatus('5361800828313167608');
}
onClick: () => {
openTelegramLink(`https://t.me/nft/${gift.slug}`);
},
To Reproduce
- Create react app with vite + typescript
- Install @telegram-apps/sdk-react ^3.3.1
- Init it with init()
- Try to call methods I described earlier
Expected Behavior
Well, each method should do what it supposed to do