How to detect users using @twa-dev/sdk for a TMA (Telegram Mini App)?
I want to create a TMA (Telegram Mini App) using @twa-dev/sdk
. I don’t any auth in the app but I need to pass a something like Telegram ID, etc. to my API endpoint to save/retrieve user related data in/from database.
Navigation in external URLs within TMA (Telegram Mini App)
Inside of my Telegram Mini App, say I have an anchor tag <a href="google.com">External URL</a>
, which then opens inside of the telegram app itself. As is, there is no way to navigate back to the original app, except clicking the ‘Close’ button in the top left and then opening the TMA again from the bot main button.