🚀 Upcoming Release: Telegram WebApp SDK in Rust
Published on September 12, 2025 by RAprogramm
What it isÂ
telegram-webapp-sdk is a safe and ergonomic wrapper around the Telegram WebApp API with Rust-first design:Â
- Type-safe calls (Result<_, JsValue> instead of unpredictable exceptions).
- Full UI control (MainButton, secondary buttons, alerts, expand/close, theme handling).
- Sending data back to the bot (send_data) and accessing environment parameters.
- WASM build powered by wasm-bindgen/web-sys.
- Optional adapters for Yew and Leptos.
What’s coming in v0.1.0Â
- Core WebApp API coverage with robust error handling.
- Predictable signatures: no unwrap/expect, no panics.
- Feature flags for Yew and Leptos integration.
- Demo app (Dev Menu for quickly testing functionality).
- MSRV: 1.89, edition: 2024.
- Dual license: MIT or Apache-2.0.
Why Rust for Mini AppsÂ
- Safety & reliability. Strong typing and compile-time checks, fewer runtime surprises.
- Performance. WebAssembly provides fast startup and predictable resources.
- Ecosystem. Direct interop with web-sys, wasm-bindgen, plus modern frameworks like Yew/Leptos.
RoadmapÂ
- 0.1.x: expand examples, polish error handling, improve logging.
- 0.2: more utilities (init helpers, environment checks, events, theming), richer Yew/Leptos examples.
- Docs: migration guides from JS, best practices for structuring Rust+WASM Mini Apps.
Â
Get involved
Â
- File issues and feature requests in the repo
--- ThanksÂ
Big thanks to everyone testing the demo, reporting bugs, and contributing fixes. The release is just around the corner — writing Telegram Mini Apps in Rust + WASM is about to get a lot smoother.