telegraph-rs 0.5.0

telegraph binding in Rust
Documentation

telegraph-rs

crates.io Documentation

telegraph binding in Rust

see https://telegra.ph/api for more information

Examples

#[tokio::main]
async fn main() {
    use telegraph_rs::{Telegraph, html_to_node};

    let telegraph = Telegraph::new("test_account").create().await.unwrap();

    let page = telegraph
        .create_page("title", &html_to_node("<p>Hello, world</p>"), false)
        .await
        .unwrap();
}