Rust Telegram Bot Library
A library for writing your own Telegram bots. More information here. Official API here.
Warning!
This library will undergo a major rewrite in the next few months. Currently the development is stalled and many new API parts are not supported right now! If you need to write a production ready application, either wait or use another (non-Rust) library. We're sorry :(
Example
Here is a simple example (see example/simple.rs
):
extern crate telegram_bot;
use *;
You can find a bigger example in the examples
folder and run them like this:
TELEGRAM_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXxx
Usage
This library is available via crates.io
. In order to use it, just add this to your Cargo.toml
:
telegram-bot = "0.4"
Collaboration
Yes please! Every type of contribution is welcome: Create issues, hack some code or make suggestions. If you don't know where to start, just contact me (my email is on my github profile).
Please submit pull request against the master
branch, unless all changes are just documentation fixes.
Todo
- "getMe"
- Methods without files
- "getMe"
- "sendMessage"
- "forwardMessage"
- "sendLocation"
- "sendChatAction"
- "getUserProfilePhotos"
- "getUpdates" and
long_poll
- "setWebhook" and
listen
- sending files ("sendAudio", "sendDocument", ...)
- More good documentation and examples
- Maybe think about multithreading stuff