#telegram #utilities #query-string #init-data #tma #mini-apps

tma-init-data

Utilities to work with Telegram Mini Apps init data

7 releases (stable)

1.2.0 Jan 24, 2025
1.1.2 Jan 22, 2025
0.1.1 Nov 4, 2024

#678 in Network programming

Download history 231/week @ 2024-11-01 36/week @ 2024-11-08 19/week @ 2024-11-15 42/week @ 2024-11-22 26/week @ 2024-11-29 53/week @ 2024-12-06 64/week @ 2024-12-13 46/week @ 2024-12-20 61/week @ 2024-12-27 105/week @ 2025-01-03 113/week @ 2025-01-10 442/week @ 2025-01-17 197/week @ 2025-01-24 72/week @ 2025-01-31 57/week @ 2025-02-07

770 downloads per month

MIT license

19KB
272 lines

TMA Init Data Rust

The crate provides utilities to work with Telegram Mini Apps init data.

Crates.io codecov

Available functions

  • parse - allow to parse string with init data into InitData struct.
  • validate - validates passed init data.
  • sign - signs hashmap with the passed token.
  • sign_query_string - signs query string with the passed token.

Implementation was taken from init-data-golang.

Dependencies

~3–4.5MB
~86K SLoC