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

tma-init-data

Utilities to work with Telegram Mini Apps init data

5 releases (3 stable)

new 1.1.1 Jan 17, 2025
1.0.0 Jan 9, 2025
0.1.1 Nov 4, 2024
0.1.0 Nov 4, 2024

#780 in Network programming

Download history 122/week @ 2024-10-29 138/week @ 2024-11-05 13/week @ 2024-11-12 33/week @ 2024-11-19 34/week @ 2024-11-26 36/week @ 2024-12-03 67/week @ 2024-12-10 59/week @ 2024-12-17 66/week @ 2024-12-24 40/week @ 2024-12-31 172/week @ 2025-01-07 236/week @ 2025-01-14

530 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
~87K SLoC