Crates.io | telegraph-rs |
lib.rs | telegraph-rs |
version | 0.6.3 |
source | src |
created_at | 2019-05-19 05:20:53.787881 |
updated_at | 2024-08-06 07:41:43.372586 |
description | telegraph binding for Rust |
homepage | https://github.com/Aloxaf/telegraph-rs |
repository | https://github.com/Aloxaf/telegraph-rs |
max_upload_size | |
id | 135205 |
size | 28,588 |
telegraph binding in Rust
see https://telegra.ph/api for more information
#[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();
}