SagiriShiho / telegraph-rs

telegraph API binding in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();
}

About

telegraph API binding in Rust

License:MIT License


Languages

Language:Rust 100.0%