1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! HTTP client and typed method builders for the Telegram Bot API.
//!
//! The central type is [`BotClient`], which is cheap to clone (all state is
//! behind an `Arc`) and safe to share across tasks. Every Bot API method is
//! exposed as a builder that returns a future:
//!
//! ```rust,ignore
//! let message = client
//! .send_message(chat_id, "Hello!")
//! .parse_mode(ParseMode::HTML)
//! .disable_notification(true)
//! .await?;
//! ```
//!
//! # Error handling
//!
//! All methods return [`Result<T>`]. The [`Error`] type covers API-level
//! failures (bad token, flood control, missing permissions), transport errors,
//! and serialisation failures. Rate-limit errors (HTTP 429) are automatically
//! retried by the polling engine in `rustigram-bot`; individual API calls
//! surface them as [`Error::RateLimit`].
//!
//! # Feature flags
//!
//! | Feature | Default | Description |
//! |---|---|---|
//! | `rustls` | yes | TLS via rustls |
//!
//! # Re-exports
//!
//! The [`methods`] module re-exports every builder type. You generally do not
//! need to import them directly — call the corresponding method on
//! [`BotClient`] and the builder is returned.
/// Core HTTP client and configuration.
/// Error types for API operations.
/// Typed method builders for every Telegram Bot API endpoint.
pub use ;
pub use ;