🤖 An elegant Telegram bots framework for Rust https://docs.rs/teloxide
Find a file
Maybe Waffle a84e897db9 Refactor multipart requests
This removes the logic in the multipart serializer that unserialized
`InputFile`s from serde. Now `InputFile`s  are serialized either as
their value (for `FileId` and `Url`) or as an `attach://<id>` string
where `<id>` is replaced with some id unique for the file. The file data
itself is acquired through `MultipartPayload` trait.

Since the `<id>` must be the same while serializing the file with serde
and while acquiring data through `MultipartPayload` trait, `InputFile`
needs to store said id. As such, `InputFile` is now a structure with
private fields and it's structure can't be observed by users. The only
things that `InputFile` provides are
- Constructors (`url`, `file_id`, `file`, `memory`)
- File name setter
- `Clone` and `Debug` implementations
2022-01-13 17:14:13 +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 Refactor multipart requests 2022-01-13 17:14:13 +03:00
.gitignore Initial commit 2020-08-12 18:04:50 +03:00
Cargo.toml Refactor multipart requests 2022-01-13 17:14:13 +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+.