Skip to main content

frankenstein/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![cfg_attr(test, allow(dead_code))]
3#![doc = include_str!("../README.md")]
4
5#[cfg(feature = "client-reqwest")]
6pub use reqwest;
7#[cfg(feature = "client-ureq")]
8pub use ureq;
9
10pub use self::error::Error;
11pub use self::parse_mode::ParseMode;
12#[cfg(feature = "trait-async")]
13pub use self::trait_async::AsyncTelegramApi;
14#[cfg(feature = "trait-sync")]
15pub use self::trait_sync::TelegramApi;
16
17#[cfg(feature = "client-reqwest")]
18pub mod client_reqwest;
19#[cfg(feature = "client-ureq")]
20pub mod client_ureq;
21mod error;
22pub mod games;
23pub mod gifts;
24pub mod inline_mode;
25pub mod input_file;
26pub mod input_media;
27#[cfg(any(feature = "client-reqwest", feature = "client-ureq"))]
28mod json;
29mod macros;
30pub mod methods;
31mod parse_mode;
32pub mod passport;
33pub mod payments;
34pub mod response;
35pub mod stickers;
36#[cfg(test)]
37mod test_json;
38#[cfg(feature = "trait-async")]
39mod trait_async;
40#[cfg(feature = "trait-sync")]
41mod trait_sync;
42pub mod types;
43pub mod updates;
44
45/// Default Bot API URL
46pub const BASE_API_URL: &str = "https://api.telegram.org/bot";
47
48#[deprecated(
49    since = "0.39.0",
50    note = "enable the client-reqwest feature and use frankenstein::client_reqwest::Bot instead"
51)]
52#[doc(hidden)]
53pub struct AsyncApi;
54#[deprecated(
55    since = "0.39.0",
56    note = "enable the client-ureq feature and use frankenstein::client_ureq::Bot instead"
57)]
58#[doc(hidden)]
59pub struct Api;