Hacker Newsnew | past | comments | ask | show | jobs | submit | paulbrickman's commentslogin

I open-sourced the auth and payment code as a starter kit: https://github.com/haskellthurber/telegram-miniapp-starter

The trickiest part was getting initData validation right — Telegram's docs don't mention you need to sort the parameters alphabetically before hashing. The code in the repo handles that plus the full Stars payment lifecycle.

Also wrote a step-by-step guide for the Stars integration specifically: https://dev.to/haskelldev/how-to-accept-payments-in-a-telegr...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: