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

tma-init-data

Utilities to work with Telegram Mini Apps init data

7 releases (stable)

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

#721 in Network programming

Download history 233/week @ 2024-11-02 37/week @ 2024-11-09 18/week @ 2024-11-16 47/week @ 2024-11-23 21/week @ 2024-11-30 65/week @ 2024-12-07 61/week @ 2024-12-14 46/week @ 2024-12-21 62/week @ 2024-12-28 155/week @ 2025-01-04 212/week @ 2025-01-11 363/week @ 2025-01-18

810 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