12 releases

0.6.3 Aug 6, 2024
0.6.2 Jun 25, 2023
0.5.0 Mar 1, 2021
0.4.2 Nov 2, 2020
0.1.0 May 19, 2019

#543 in Web programming

Download history 111/week @ 2024-08-01 18/week @ 2024-08-08 26/week @ 2024-09-05 16/week @ 2024-09-12 9/week @ 2024-09-19 13/week @ 2024-09-26 11/week @ 2024-10-03

51 downloads per month

MIT license

28KB
507 lines

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

lib.rs:

telegraph API binding in Rust

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

Examples

use telegraph_rs::{Telegraph, html_to_node};

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

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

Dependencies

~4–15MB
~211K SLoC