mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
🤖 An elegant Telegram bots framework for Rust
https://docs.rs/teloxide
5b4ed3faa9
This commit adds `InputFile::read` constructor that creates `InputFile` from an `impl AsyncRead + Send + Unpin + 'static`. Internally this requires quite a bit of work, since we need to support cloning `InputFile`s but the `AsyncRead` trait only allows us reading it once. To support this, if `InputFile` detects that it's shared, it reads the contents of the `AsyncRead` into a buffer and then shares the buffer (or an error if it has occured). |
||
---|---|---|
.github/workflows | ||
examples | ||
media | ||
src | ||
.gitignore | ||
Cargo.toml | ||
CHANGELOG.md | ||
LICENSE | ||
netlify.toml | ||
README.md | ||
rust-toolchain.toml | ||
rustfmt.toml |
teloxide-core
The core part of teloxide
providing tools for making requests to the Telegram Bot API with ease. This library is fully asynchronous and built using tokio
.
teloxide-core = "0.3"
Compiler support: requires rustc 1.49+.