Rust Telegram Bot Library (Fork)
A library for writing your own Telegram bots. More information here. Official API here.
Example
Here is a simple example (see example/simple.rs
):
use env;
use StreamExt;
use *;
async
You can find a bigger examples in the examples
.
Usage
This library is available via crates.io
. In order to use it, just add this to your Cargo.toml
:
telegram-bot = "0.7"
The library allows you to do E2E-testing of your bot easily: just specify TELEGRAM_API_URL
environment variable to point to your fake Telegram test server.
A lot of diagnostic information can be collected with tracing framework, see example/tracing.rs
).
Collaboration
Yes please! Every type of contribution is welcome: Create issues, hack some code or make suggestions. Don't know where to start? Good first issues are tagged with up for grab.