Telegram Mini Apps Init Data Parser for Rust
A Rust library for parsing and validating Telegram Mini Apps init data. This library helps you work with the data passed from Telegram to your Mini App, ensuring its authenticity and integrity.
Features
- Parse init data from query string format
- Validate init data signature using bot token
- Support for third-party bot validation
- Type-safe data structures
- Comprehensive error handling
- 100% test coverage
Installation
Add this to your Cargo.toml
:
[]
= "0.1.2"
Usage
use ;
Third-party Bot Validation
use validate_third_party;
let data = validate_third_party?;
Documentation
For detailed documentation, visit docs.rs/init-data-rs.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
This is a Rust port of the official Golang implementation.