Skip to main content

telegram_rs_2/
lib.rs

1//! # telegram-rs
2//!
3//! A comprehensive Rust library for building Telegram bots and Mini Apps with optional wallet integration.
4//!
5//! ## Features
6//!
7//! - **Bot API**: Asynchronous client for sending/receiving messages, handling updates via polling or webhooks
8//! - **Mini Apps** (feature-gated): Utilities for Telegram Web Apps with initData validation
9//! - **Wallet Connect** (feature-gated): TON Connect v2 integration for blockchain functionality
10//!
11//! ## Quick Start
12//!
13//! Add to your `Cargo.toml`:
14//! ```toml
15//! [dependencies]
16//! telegram-rs = "0.1"
17//! ```
18
19pub mod errors;
20pub mod client;
21pub mod core;
22pub mod rt;
23
24pub use core::Bot;
25pub use core::types::Update;
26
27pub use self::errors::{Error, Result};
28pub use telegram_macros::*;
29
30#[cfg(feature = "mini-app")]
31pub mod mini_app;
32
33#[cfg(feature = "wallet")]
34pub mod wallet;