| Crates.io | telefy |
| lib.rs | telefy |
| version | 1.0.1 |
| created_at | 2025-11-25 21:22:43.824175+00 |
| updated_at | 2025-11-28 16:52:16.341136+00 |
| description | A crate to send logging messages to telegram |
| homepage | |
| repository | https://github.com/darrkenn/telefy |
| max_upload_size | |
| id | 1950463 |
| size | 44,701 |
A library for sending logging messages to telegram.
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let token = "TOKEN".to_string();
let chat_id = "CHAT_ID".to_string();
//Create bot
TelefyBot::new(token, chat_id)?;
//Create and send message
let message = "Hello I am a bot".to_string();
telefy::message!(message);
}