Why it matters
T.me deep links pass start payloads into /start as untrusted input.
Practical steps
- Document the payload schema you accept
- Reject unexpected formats early
- Never embed secrets in start payloads
- Map payloads to server-side tokens when needed
- Test encoded, empty and truncated values
Watch out for
- Copy-pasting outdated snippets for telegram deep links without re-reading current official docs.
- Shipping telegram deep links to production without a staging rehearsal and a documented rollback.