The panel only opened for me
  • Tanga
  • Telegram
  • Mini App
  • Debugging

The panel only opened for me

67
Today I tracked down an odd bug in the Tanga bot's Mini App. When I opened the dashboard, everything worked. When users opened it, they saw "This page only works inside Telegram". The server logs gave the first hint: over a week the page was loaded 80 times, but the data request arrived only 34 times. More than half of the opens stopped before ever reaching the server. The cause was a single sentence in Telegram's documentation: a Mini App launched from a keyboard button receives no user data (initData). The server checks every request against exactly that signature. I opened the dashboard from the menu button in the bottom-left corner, which does pass initData. Users tapped the "Panel" button on the keyboard. The fix has two parts. The keyboard button is now plain text: tapping it makes the bot send an inline button, which opens the dashboard with initData. For people who still have the old keyboard on screen, the dashboard signals the bot itself and the bot replaces the keyboard. Takeaway: "works for me" is the most dangerous test result.