🤖 An elegant Telegram bots framework for Rust https://docs.rs/teloxide
Find a file
Maybe Waffle 5b4ed3faa9 Allow sending impl AsyncRead
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).
2022-01-13 17:14:24 +03:00
.github/workflows Pin tooling in the CI to a specific version 2021-12-19 14:42:19 +03:00
examples Add tools for Bot/Request type erasure 2021-07-12 16:58:51 +03:00
media Add media 2021-01-13 16:10:56 +03:00
src Allow sending impl AsyncRead 2022-01-13 17:14:24 +03:00
.gitignore Initial commit 2020-08-12 18:04:50 +03:00
Cargo.toml Allow sending impl AsyncRead 2022-01-13 17:14:24 +03:00
CHANGELOG.md Merge branch 'master' into tolerant_updates_for_all 2022-01-12 15:14:37 +07:00
LICENSE Update the license year 2022-01-02 02:53:34 +06:00
netlify.toml Normalize docs 2021-01-07 18:00:57 +03:00
README.md Add support for TBA 5.6 2022-01-03 21:41:57 +03:00
rust-toolchain.toml Pin tooling in the CI to a specific version 2021-12-19 14:42:19 +03:00
rustfmt.toml Small enhancements 2021-02-15 16:46:31 +06:00

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+.