7 releases (breaking)

0.7.0 Sep 17, 2024
0.6.0 May 3, 2024
0.5.1 Nov 18, 2023
0.4.1 Oct 14, 2022
0.2.0 Jul 20, 2020

#338 in Web programming

Download history 128/week @ 2024-08-23 72/week @ 2024-08-30 97/week @ 2024-09-06 207/week @ 2024-09-13 192/week @ 2024-09-20 181/week @ 2024-09-27 86/week @ 2024-10-04 196/week @ 2024-10-11 143/week @ 2024-10-18 152/week @ 2024-10-25 210/week @ 2024-11-01 213/week @ 2024-11-08 312/week @ 2024-11-15 215/week @ 2024-11-22 160/week @ 2024-11-29 357/week @ 2024-12-06

1,052 downloads per month
Used in 8 crates (3 directly)

MIT/Apache

100KB
2.5K SLoC

gramme.rs

A set of Rust libraries to interact with Telegram's API, hence the name (tele)gramme.rs.

Current status

It works! The high-level interface is slowly taking shape, and it can already be used to build real projects, such as RSS bots.

For an up-to-date taste on how the library looks like, refer to the client examples folder.

For more documentation, please refer to https://docs.rs/grammers-client/.

Libraries

The following libraries under lib/ can be used to work with Telegram in some way:

Binaries

The following auxiliary CLI tools are available in the bin/ folder:

Security

It is recommended to always use cargo-crev to verify the trustworthiness of each of your dependencies, including this one.

As far as I know, this code has not been audited, so if, for any reason, you're using this crate where security is critical, I strongly encourage you to review at least grammers-crypto and the authentication part of grammers-mtproto. I am not a security expert, although I trust my code enough to use it myself.

If you know about some published audit for this crate, please let me know, so that I can link it here and review the issues found.

License

All the libraries and binaries contained in this repository are licensed under either of

at your option.

Contribution

Thank you for considering to contribute! I'll try my best to provide quick, constructive feedback on your issues or pull requests. Please do call me out if you think my behaviour is not acceptable at any time. I will try to keep the discussion as technical as possible. Similarly, I will not tolerate poor behaviour from your side towards other people (including myself).

If you don't have the time to contribute code, you may contribute by reporting issues or feature ideas. Please note that every feature added will increase maintenance burden on my part, so be mindful when suggesting things. It may be possible that your idea could exist as its own crate, offered as extensions to grammers.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

This module gathers all the code generation submodules and coordinates them, feeding them the right data.

Dependencies

~78KB