BotNetwork

Telegram deep links and start payloads

t.me deep links pass start payloads into /start as untrusted input.

Guide1 min readUpdated

Why it matters

T.me deep links pass start payloads into /start as untrusted input.

Practical steps

  1. Document the payload schema you accept
  2. Reject unexpected formats early
  3. Never embed secrets in start payloads
  4. Map payloads to server-side tokens when needed
  5. 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.

Related comparisons and tools