🚀 Upcoming Release: Telegram WebApp SDK in Rust
Published on September 12, 2025 by RAprogramm

TL;DR: We’re about to release the first version of telegram-webapp-sdk

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.