diff --git a/docs/modules/_tonconnect_ui.html b/docs/modules/_tonconnect_ui.html index 27c8e5c24..5ac65f395 100644 --- a/docs/modules/_tonconnect_ui.html +++ b/docs/modules/_tonconnect_ui.html @@ -230,7 +230,11 @@

Add the return strategy

Use inside TMA (Telegram Mini Apps)

TonConnect UI will work in TMA in the same way as in a regular website! -Basically, no changes are required from the dApp's developers. The only thing you have to set is a dynamic return strategy.

+Developers need to ensure that the Telegram Mini Apps environment is detected correctly by including the following script inside the header block of your HTML:

+
<header>
+  <script src="https://telegram.org/js/telegram-web-app.js"></script>
+</header>
+Basically, no additional changes are required from the dApp's developers. The only thing you have to set is a dynamic return strategy.

Currently, it is impossible for TMA-wallets to redirect back to previous opened TMA-dApp like native wallet-apps do. It means, that you need to specify the return strategy as a link to your TMA that will be only applied if the dApp is opened in TMA mode.

tonConnectUI.uiOptions = {
twaReturnUrl: 'https://t.me/durov'
}; @@ -711,4 +715,4 @@

WalletsModalState

Generated using TypeDoc

-
\ No newline at end of file +