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

tma-init-data

Utilities to work with Telegram Mini Apps init data

2 releases

0.1.1 Nov 4, 2024
0.1.0 Nov 4, 2024

#26 in #query-string

Download history 188/week @ 2024-10-30 76/week @ 2024-11-06 13/week @ 2024-11-13 40/week @ 2024-11-20 26/week @ 2024-11-27 31/week @ 2024-12-04

114 downloads per month

MIT license

19KB
262 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