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
46
47
48
49
50
51
52
//! # toptl
//!
//! Official Rust SDK for the [TOP.TL](https://top.tl) public API.
//!
//! ## Quick start
//!
//! ```no_run
//! use toptl::{StatsPayload, TopTL};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), toptl::Error> {
//! let client = TopTL::new("toptl_xxx");
//!
//! // Look up a listing
//! let listing = client.get_listing("durov").await?;
//! println!("{} — {} votes", listing.title, listing.vote_count);
//!
//! // Post stats for a listing you own
//! client
//! .post_stats(
//! "mybot",
//! &StatsPayload {
//! member_count: Some(5_000),
//! group_count: Some(1_200),
//! channel_count: Some(300),
//! bot_serves: None,
//! },
//! )
//! .await?;
//!
//! // Reward voters
//! let check = client.has_voted("mybot", 123_456_789u64).await?;
//! if check.voted {
//! // grant premium ...
//! }
//!
//! Ok(())
//! }
//! ```
//!
//! ## Autoposter
//!
//! See [`autoposter::Autoposter`] for the recurring-post helper.
pub use ;
pub use Error;
pub use *;