Crates.io | pushmore |
lib.rs | pushmore |
version | 0.1.2 |
source | src |
created_at | 2018-04-19 06:47:17.150777 |
updated_at | 2021-01-07 11:06:50.738261 |
description | Easily send notifications to Telegram |
homepage | https://github.com/daniellockyer/pushmore-rust-client |
repository | https://github.com/daniellockyer/pushmore-rust-client |
max_upload_size | |
id | 61353 |
size | 5,814 |
This is a Rust crate for the Push More service to easily send notifications through Telegram.
Add this to your Cargo.toml
:
[dependencies]
pushmore = "0.1"
and this to your crate root:
extern crate pushmore;
use pushmore::PushMore;
and then you can use it as follows:
let client = PushMore::new(); // This will use the key stored in the PUSH_MORE_KEY environment variable.
// or
let client = PushMore::new_with_key("<pushmore key>".to_string());
client.send("hello!".to_string());
reqwest
for underlying hyper
library to lighten the dependencies.